reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lldb/unittests/Symbol/TestClangASTContext.cpp
   39     m_ast.reset(new ClangASTContext(triple.c_str()));
   42   void TearDown() override { m_ast.reset(); }
   48     return ClangUtil::GetQualType(m_ast->GetBasicTypeFromAST(type));
   53         m_ast->GetBuiltinTypeByName(ConstString(name)));
   58   clang::ASTContext *context = m_ast->getASTContext();
  209   clang::ASTContext *context = m_ast->getASTContext();
  235   clang::ASTContext *context = m_ast->getASTContext();
  238   CompilerType bool_type(m_ast.get(), bool_ctype);
  239   CompilerType record_type = m_ast->CreateRecordType(
  251   CompilerType record_type = m_ast->CreateRecordType(
  321       ClangASTContext::GetBasicType(m_ast->getASTContext(), eBasicTypeInt);
  324   CompilerType empty_base = m_ast->CreateRecordType(
  335   CompilerType non_empty_base = m_ast->CreateRecordType(
  339   FieldDecl *non_empty_base_field_decl = m_ast->AddFieldToRecordType(
  351   CompilerType empty_derived = m_ast->CreateRecordType(
  356       m_ast->CreateBaseClassSpecifier(non_empty_base.GetOpaqueQualType(),
  359   bool result = m_ast->TransferBaseClasses(empty_derived.GetOpaqueQualType(),
  364       m_ast->GetAsCXXRecordDecl(empty_derived.GetOpaqueQualType());
  374   CompilerType empty_derived2 = m_ast->CreateRecordType(
  379       m_ast->CreateBaseClassSpecifier(non_empty_base.GetOpaqueQualType(),
  382   result = m_ast->TransferBaseClasses(empty_derived2.GetOpaqueQualType(),
  387       m_ast->GetAsCXXRecordDecl(empty_derived2.GetOpaqueQualType());
  399   infos.args.push_back(TemplateArgument(m_ast->getASTContext()->IntTy));
  402   infos.args.push_back(TemplateArgument(*m_ast->getASTContext(), arg,
  403                                         m_ast->getASTContext()->IntTy));
  406   ClassTemplateDecl *decl = m_ast->CreateClassTemplateDecl(
  407       m_ast->GetTranslationUnitDecl(), eAccessPublic, "foo", TTK_Struct, infos);
  412       m_ast->CreateClassTemplateSpecializationDecl(
  413           m_ast->GetTranslationUnitDecl(), decl, TTK_Struct, infos);
  415   CompilerType type = m_ast->CreateClassTemplateSpecializationType(spec_decl);
  417   m_ast->StartTagDeclarationDefinition(type);
  418   m_ast->CompleteTagDeclarationDefinition(type);
  421   CompilerType typedef_type = m_ast->CreateTypedefType(
  423       CompilerDeclContext(m_ast.get(), m_ast->GetTranslationUnitDecl()));
  423       CompilerDeclContext(m_ast.get(), m_ast->GetTranslationUnitDecl()));
  426       m_ast.get(),
  427       m_ast->getASTContext()
  432   CompilerType int_type(m_ast.get(), m_ast->getASTContext()->IntTy.getAsOpaquePtr());
  432   CompilerType int_type(m_ast.get(), m_ast->getASTContext()->IntTy.getAsOpaquePtr());
  436     EXPECT_EQ(m_ast->GetTemplateArgumentKind(t.GetOpaqueQualType(), 0),
  438     EXPECT_EQ(m_ast->GetTypeTemplateArgument(t.GetOpaqueQualType(), 0),
  441               m_ast->GetIntegralTemplateArgument(t.GetOpaqueQualType(), 0));
  443     EXPECT_EQ(m_ast->GetTemplateArgumentKind(t.GetOpaqueQualType(), 1),
  445     EXPECT_EQ(m_ast->GetTypeTemplateArgument(t.GetOpaqueQualType(), 1),
  447     auto result = m_ast->GetIntegralTemplateArgument(t.GetOpaqueQualType(), 1);