| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTImporterFixtures.cpp | 47 TUDecl(Unit->getASTContext().getTranslationUnitDecl()), Creator(C), in TU() 135 return E.TUDecl == From->getTranslationUnitDecl(); in findFromTU() 184 return Tu.TUDecl; in getTuDecl() 213 QualType ASTImporterTestBase::ImportType(QualType FromType, Decl *TUDecl, in ImportType() argument 216 TU *FromTU = findFromTU(TUDecl); in ImportType()
|
| H A D | ASTImporterFixtures.h | 114 TranslationUnitDecl *TUDecl = nullptr; member 192 QualType ImportType(QualType FromType, Decl *TUDecl, TestLanguage ToLang);
|
| H A D | ASTTraverserTest.cpp | 1069 const auto *TUDecl = AST->getASTContext().getTranslationUnitDecl(); in TEST() local 1071 EXPECT_EQ(dumpASTString(TK_IgnoreUnlessSpelledInSource, TUDecl), in TEST()
|
| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteObjC.cpp | 68 TranslationUnitDecl *TUDecl; member in __anon0b56e30a0111::RewriteObjC 604 TUDecl = Context->getTranslationUnitDecl(); in InitializeCommon() 2235 SelGetUidFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthSelGetUidFunctionDecl() 2349 MsgSendFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendFunctionDecl() 2360 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthMsgSendSuperFunctionDecl() 2371 MsgSendSuperFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendSuperFunctionDecl() 2390 MsgSendStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendStretFunctionDecl() 2448 GetClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthGetClassFunctionDecl() 3025 ProtocolTypeDecl = TypedefDecl::Create(*Context, TUDecl, in getProtocolType() 4344 return FunctionDecl::Create(*Context, TUDecl, SourceLocation(), in SynthBlockInitFunctionDecl() [all …]
|
| H A D | RewriteModernObjC.cpp | 70 TranslationUnitDecl *TUDecl; member in __anon21803b4f0111::RewriteModernObjC 676 TUDecl = Context->getTranslationUnitDecl(); in InitializeCommon() 2322 SelGetUidFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthSelGetUidFunctionDecl() 2439 MsgSendFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendFunctionDecl() 2453 MsgSendSuperFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendSuperFunctionDecl() 2472 MsgSendStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendStretFunctionDecl() 2508 MsgSendFpretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendFpretFunctionDecl() 2522 GetClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthGetClassFunctionDecl() 3571 ProtocolTypeDecl = TypedefDecl::Create(*Context, TUDecl, in getProtocolType() 5191 return FunctionDecl::Create(*Context, TUDecl, SourceLocation(), in SynthBlockInitFunctionDecl() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ASTContext.h | 605 TranslationUnitDecl *TUDecl = nullptr; variable 1089 return TUDecl->getMostRecentDecl(); in getTranslationUnitDecl() 1092 assert(!TUDecl || TUKind == TU_Incremental); in addTranslationUnitDecl() 1094 if (TraversalScope.empty() || TraversalScope.back() == TUDecl) in addTranslationUnitDecl() 1096 if (TUDecl) in addTranslationUnitDecl() 1097 NewTUDecl->setPreviousDecl(TUDecl); in addTranslationUnitDecl() 1098 TUDecl = NewTUDecl; in addTranslationUnitDecl()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCUDANV.cpp | 345 TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl(); in emitDeviceStubBodyNew() local 346 DeclContext *DC = TranslationUnitDecl::castToDeclContext(TUDecl); in emitDeviceStubBodyNew()
|
| H A D | CGObjCGNU.cpp | 1236 TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl(); in GetClassVar() local 1237 DeclContext *DC = TranslationUnitDecl::castToDeclContext(TUDecl); in GetClassVar() 2329 TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl(); in EmitNSAutoreleasePoolClassRef() local 2330 DeclContext *DC = TranslationUnitDecl::castToDeclContext(TUDecl); in EmitNSAutoreleasePoolClassRef()
|
| H A D | CGBlocks.cpp | 2833 TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl(); in configureBlocksRuntimeObject() local 2834 DeclContext *DC = TranslationUnitDecl::castToDeclContext(TUDecl); in configureBlocksRuntimeObject()
|
| H A D | CodeGenModule.cpp | 4082 TranslationUnitDecl *TUDecl = C.getTranslationUnitDecl(); in GetRuntimeFunctionDecl() local 4083 DeclContext *DC = TranslationUnitDecl::castToDeclContext(TUDecl); in GetRuntimeFunctionDecl() 5501 TranslationUnitDecl *TUDecl = Context.getTranslationUnitDecl(); in GetAddrOfConstantCFString() local 5502 DeclContext *DC = TranslationUnitDecl::castToDeclContext(TUDecl); in GetAddrOfConstantCFString()
|
| H A D | CGObjCMac.cpp | 6468 TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl(); in getStorage() local 6469 DeclContext *DC = TranslationUnitDecl::castToDeclContext(TUDecl); in getStorage()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | TreeTransform.h | 3671 TranslationUnitDecl *TUDecl = SemaRef.Context.getTranslationUnitDecl(); in RebuildShuffleVectorExpr() local 3672 DeclContext::lookup_result Lookup = TUDecl->lookup(DeclarationName(&Name)); in RebuildShuffleVectorExpr()
|