Home
last modified time | relevance | path

Searched refs:ImportDecl (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/clang/include/clang/Index/
H A DIndexDataConsumer.h21 class ImportDecl; variable
60 virtual bool handleModuleOccurrence(const ImportDecl *ImportD, in handleModuleOccurrence()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTConsumer.h28 class ImportDecl; variable
92 virtual void HandleImplicitImportDecl(ImportDecl *D);
H A DASTContext.h602 ImportDecl *FirstLocalImport = nullptr;
603 ImportDecl *LastLocalImport = nullptr;
915 ImportDecl *Import = nullptr;
918 using value_type = ImportDecl *;
919 using reference = ImportDecl *;
920 using pointer = ImportDecl *;
925 explicit import_iterator(ImportDecl *Import) : Import(Import) {} in import_iterator()
1038 void addedLocalImportDecl(ImportDecl *Import);
1040 static ImportDecl *getNextLocalImport(ImportDecl *Import) { in getNextLocalImport()
H A DDecl.h4523 class ImportDecl final : public Decl,
4524 llvm::TrailingObjects<ImportDecl, SourceLocation> {
4541 llvm::PointerIntPair<ImportDecl *, 1, bool> NextLocalImportAndComplete;
4543 ImportDecl(DeclContext *DC, SourceLocation StartLoc, Module *Imported,
4546 ImportDecl(DeclContext *DC, SourceLocation StartLoc, Module *Imported,
4549 ImportDecl(EmptyShell Empty) : Decl(Import, Empty) {} in ImportDecl() function
4557 ImportDecl *getNextLocalImport() const { in getNextLocalImport()
4561 void setNextLocalImport(ImportDecl *Import) { in setNextLocalImport()
4567 static ImportDecl *Create(ASTContext &C, DeclContext *DC,
4573 static ImportDecl *CreateImplicit(ASTContext &C, DeclContext *DC,
[all …]
H A DTextNodeDumper.h339 void VisitImportDecl(const ImportDecl *D);
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexingContext.h23 class ImportDecl; variable
95 bool importedModule(const ImportDecl *ImportD);
H A DIndexingContext.cpp95 const ImportDecl *ImportD, in reportModuleReferences()
105 bool IndexingContext::importedModule(const ImportDecl *ImportD) { in importedModule()
194 if (isa<ImportDecl>(D)) in shouldIgnoreIfImplicit()
H A DIndexDecl.cpp760 bool VisitImportDecl(const ImportDecl *D) { in VisitImportDecl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaModule.cpp351 ImportDecl *Import = in ActOnModuleDecl()
352 ImportDecl::Create(Context, CurContext, ModuleLoc, Mod, Path[0].second); in ActOnModuleDecl()
530 ImportDecl *Import = ImportDecl::Create(Context, CurContext, StartLoc, in ActOnModuleImport()
601 ImportDecl *ImportD = ImportDecl::CreateImplicit(getASTContext(), TU, in BuildModuleInclude()
694 ImportDecl *ImportD = ImportDecl::CreateImplicit(getASTContext(), TU, in createImplicitModuleImportForErrorRecovery()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTConsumer.cpp28 void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) { in HandleImplicitImportDecl()
H A DDecl.cpp5207 ImportDecl::ImportDecl(DeclContext *DC, SourceLocation StartLoc, in ImportDecl() function in ImportDecl
5218 ImportDecl::ImportDecl(DeclContext *DC, SourceLocation StartLoc, in ImportDecl() function in ImportDecl
5225 ImportDecl *ImportDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5230 ImportDecl(DC, StartLoc, Imported, IdentifierLocs); in Create()
5233 ImportDecl *ImportDecl::CreateImplicit(ASTContext &C, DeclContext *DC, in CreateImplicit()
5237 ImportDecl *Import = new (C, DC, additionalSizeToAlloc<SourceLocation>(1)) in CreateImplicit()
5238 ImportDecl(DC, StartLoc, Imported, EndLoc); in CreateImplicit()
5243 ImportDecl *ImportDecl::CreateDeserialized(ASTContext &C, unsigned ID, in CreateDeserialized()
5246 ImportDecl(EmptyShell()); in CreateDeserialized()
5249 ArrayRef<SourceLocation> ImportDecl::getIdentifierLocs() const { in getIdentifierLocs()
[all …]
H A DDeclPrinter.cpp75 void VisitImportDecl(ImportDecl *D);
937 void DeclPrinter::VisitImportDecl(ImportDecl *D) { in VisitImportDecl()
/llvm-project-15.0.7/clang/unittests/CodeGen/
H A DCodeGenExternalTest.cpp75 void HandleImplicitImportDecl(ImportDecl *D) override;
128 void MyASTConsumer::HandleImplicitImportDecl(ImportDecl *D) { in HandleImplicitImportDecl()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTCommon.h117 if (isa<ImportDecl>(D)) in isPartOfPerModuleInitializer()
H A DASTReaderDecl.cpp402 void VisitImportDecl(ImportDecl *D);
2135 void ASTDeclReader::VisitImportDecl(ImportDecl *D) { in VisitImportDecl()
2970 isa<ImportDecl>(D) || in isConsumerInterestedIn()
3806 D = ImportDecl::CreateDeserialized(Context, ID, Record.back()); in ReadDeclRecord()
/llvm-project-15.0.7/clang/include/clang/Frontend/
H A DMultiplexConsumer.h68 void HandleImplicitImportDecl(ImportDecl *D) override;
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp72 bool VisitImportDecl(ImportDecl *D) { in VisitImportDecl()
238 void HandleImplicitImportDecl(ImportDecl *D) override { in HandleImplicitImportDecl()
H A DCGDebugInfo.h534 void EmitImportDecl(const ImportDecl &ID);
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXIndexDataConsumer.h369 void importedModule(const ImportDecl *ImportD);
439 bool handleModuleOccurrence(const ImportDecl *ImportD, const Module *Mod,
H A DCXIndexDataConsumer.cpp145 bool VisitImportDecl(const ImportDecl *D) { in VisitImportDecl()
228 bool CXIndexDataConsumer::handleModuleOccurrence(const ImportDecl *ImportD, in handleModuleOccurrence()
485 void CXIndexDataConsumer::importedModule(const ImportDecl *ImportD) { in importedModule()
1237 if (isa<ImportDecl>(D)) in shouldIgnoreIfImplicit()
/llvm-project-15.0.7/clang/tools/c-index-test/
H A Dcore_main.cpp142 bool handleModuleOccurrence(const ImportDecl *ImportD, in handleModuleOccurrence()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp36 struct ImportDecl : TestImportBase {}; struct
589 TEST_P(ImportDecl, ImportFunctionTemplateDecl) { in TEST_P() argument
634 TEST_P(ImportDecl, ImportVarTemplate) { in TEST_P() argument
796 TEST_P(ImportDecl, ImportRecordDeclInFunc) { in TEST_P() argument
885 TEST_P(ImportDecl, ImportUsingDecl) { in TEST_P() argument
893 TEST_P(ImportDecl, ImportUsingTemplate) { in TEST_P() argument
905 TEST_P(ImportDecl, ImportUsingEnumDecl) { in TEST_P() argument
915 TEST_P(ImportDecl, ImportUsingPackDecl) { in TEST_P() argument
940 TEST_P(ImportDecl, ImportUsingShadowDecl) { in TEST_P() argument
2902 TEST_P(ImportDecl, ImportEnumSequential) { in TEST_P() argument
[all …]
/llvm-project-15.0.7/clang/lib/Parse/
H A DParser.cpp661 Decl *ImportDecl = ParseModuleImport(SourceLocation(), ImportState); in ParseTopLevelDecl() local
662 Result = Actions.ConvertDeclToDeclGroup(ImportDecl); in ParseTopLevelDecl()
676 Decl *ImportDecl = Import.isInvalid() ? nullptr : Import.get(); in ParseTopLevelDecl() local
677 Result = Actions.ConvertDeclToDeclGroup(ImportDecl); in ParseTopLevelDecl()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DMultiplexConsumer.cpp321 void MultiplexConsumer::HandleImplicitImportDecl(ImportDecl *D) { in HandleImplicitImportDecl()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTUtils.h183 void HandleImplicitImportDecl(clang::ImportDecl *D) override { in HandleImplicitImportDecl()

12