Home
last modified time | relevance | path

Searched refs:ASTImporter (Results 1 – 25 of 26) sorted by relevance

12

/external/llvm-project/clang/lib/AST/
DExternalASTMerger.cpp34 typedef std::pair<Source<NamedDecl *>, ASTImporter *> Candidate;
46 ASTImporter &ReverseImporter) { in LookupSameContext()
99 class LazyASTImporter : public ASTImporter {
102 ASTImporter Reverse;
117 : ASTImporter(ToContext, ToFileManager, S.getASTContext(), in LazyASTImporter()
128 return ASTImporter::ImportImpl(FromD); in ImportImpl()
167 return ASTImporter::ImportImpl(FromD); in ImportImpl()
171 ASTImporter &OtherImporter = Parent.ImporterForOrigin(PersistentCtx); in ImportImpl()
244 ASTImporter &GetReverse() { return Reverse; } in GetReverse()
257 ASTImporter &ExternalASTMerger::ImporterForOrigin(ASTContext &OriginContext) { in ImporterForOrigin()
[all …]
DASTImporter.cpp143 ASTImporter &Importer;
336 explicit ASTNodeImporter(ASTImporter &Importer) : Importer(Importer) {} in ASTNodeImporter()
1887 ASTImporter &Importer) { in setTypedefNameForAnonDecl()
2103 getStructuralEquivalenceKind(const ASTImporter &Importer) { in getStructuralEquivalenceKind()
3554 ASTImporter::getFieldIndex(D) != in VisitFieldDecl()
3555 ASTImporter::getFieldIndex(FoundField)) in VisitFieldDecl()
3635 ASTImporter::getFieldIndex(D) != in VisitIndirectFieldDecl()
3636 ASTImporter::getFieldIndex(FoundField)) in VisitIndirectFieldDecl()
7968 ASTImporter::ASTImporter(ASTContext &ToContext, FileManager &ToFileManager, in ASTImporter() function in ASTImporter
7985 ASTImporter::~ASTImporter() = default;
[all …]
DCMakeLists.txt23 ASTImporter.cpp
/external/llvm-project/clang/unittests/AST/
DASTImporterFixtures.h33 class ASTImporter; variable
92 typedef std::function<ASTImporter *(
98 ASTImporter::ODRHandlingType ODRHandling;
115 std::unique_ptr<ASTImporter> Importer;
117 ASTImporter::ODRHandlingType ODRHandling;
121 ASTImporter::ODRHandlingType ODRHandling =
122 ASTImporter::ODRHandlingType::Conservative);
195 : ODRHandling(ASTImporter::ODRHandlingType::Conservative) {} in ASTImporterTestBase()
213 ASTImporter &Importer, NodeType Node) { in importNode()
259 ASTImporter Importer(ToCtx, ToAST->getFileManager(), FromCtx, in testImport()
[all …]
DASTImporterFixtures.cpp44 ASTImporter::ODRHandlingType ODRHandling) in TU()
58 return new ASTImporter(ToContext, ToFileManager, FromContext, in TU()
DASTImporterTest.cpp81 struct RedirectingImporter : public ASTImporter {
82 using ASTImporter::ASTImporter;
88 return ASTImporter::ImportImpl(FromD); in ImportImpl()
96 return ASTImporter::ImportImpl(FromD); in ImportImpl()
162 ASTImporter::ImportPathTy path; in TEST_P()
168 ASTImporter::ImportPathTy path; in TEST_P()
179 ASTImporter::ImportPathTy path; in TEST_P()
194 ASTImporter::ImportPathTy path; in TEST_P()
213 ASTImporter::ImportPathTy path; in TEST_P()
3083 Optional<unsigned> ToIndex = ASTImporter::getFieldIndex(ToField); in TEST_P()
[all …]
DASTImporterODRStrategiesTest.cpp236 template <typename TypeParam, ASTImporter::ODRHandlingType ODRHandlingParam>
388 ODRViolation<TypeParam, ASTImporter::ODRHandlingType::ODRHandlingParam>; \
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DCxxModuleHandler.h35 clang::ASTImporter *m_importer = nullptr;
50 CxxModuleHandler(clang::ASTImporter &importer, clang::ASTContext *target);
DClangASTImporter.h187 struct ASTImporterDelegate : public clang::ASTImporter {
190 : clang::ASTImporter(*target_ctx, master.m_file_manager, *source_ctx, in ASTImporterDelegate()
193 setODRHandling(clang::ASTImporter::ODRHandlingType::Liberal); in ASTImporterDelegate()
DCxxModuleHandler.cpp19 CxxModuleHandler::CxxModuleHandler(ASTImporter &importer, ASTContext *target) in CxxModuleHandler()
172 T *createDecl(ASTImporter &importer, Decl *from_d, Args &&... args) { in createDecl()
DClangASTImporter.cpp892 return ASTImporter::ImportImpl(From); in ImportImpl()
905 ASTImporter::Imported(from, to); in ImportDefinitionTo()
1042 return clang::ASTImporter::Imported(from, to); in Imported()
1099 direct_completer->ASTImporter::Imported(origin.decl, to); in Imported()
/external/llvm-project/clang/include/clang/AST/
DExternalASTMerger.h58 typedef std::vector<std::unique_ptr<ASTImporter>> ImporterVector;
179 ASTImporter &ImporterForOrigin(ASTContext &OriginContext);
186 ASTImporter &importer);
DASTImporter.h90 class ASTImporter {
320 ASTImporter(ASTContext &ToContext, FileManager &ToFileManager,
325 virtual ~ASTImporter();
DAPValue.h242 friend class ASTImporter;
/external/clang/include/clang/AST/
DASTImporter.h39 class ASTImporter {
94 ASTImporter(ASTContext &ToContext, FileManager &ToFileManager,
98 virtual ~ASTImporter();
/external/llvm-project/clang/include/clang/CrossTU/
DCrossTranslationUnit.h29 class ASTImporter; variable
201 ASTImporter &getOrCreateASTImporter(ASTUnit *Unit);
214 llvm::DenseMap<TranslationUnitDecl *, std::unique_ptr<ASTImporter>>;
/external/llvm-project/clang/docs/
DLibASTImporter.rst2 ASTImporter: Merging Clang ASTs
5 The ``ASTImporter`` class is part of Clang's core library, the AST library.
23 ``ASTImporter`` provides the way to copy types or declarations from one ``ASTContext`` to another.
26 Existing clients of the ``ASTImporter`` library are Cross Translation Unit (CTU) static analysis an…
88 Let's create a tool which uses the ASTImporter class!
116 ASTImporter Importer(ToUnit->getASTContext(), ToUnit->getFileManager(),
189 ASTImporter Importer( .... /*MinimalImport=*/false);
198 #include "clang/AST/ASTImporter.h"
234 ASTImporter Importer(ToUnit->getASTContext(), ToUnit->getFileManager(),
318 ASTImporter Importer(ToUnit->getASTContext(), ToUnit->getFileManager(),
[all …]
DInternalsManual.rst1450 The ASTImporter
1453 The ``ASTImporter`` class imports nodes of an ``ASTContext`` into another
1454 ``ASTContext``. Please refer to the document :doc:`ASTImporter: Merging Clang
1510 ASTImporter, e.g. the ``clang::Sema`` class uses it also.
1542 The early version of the ``ASTImporter``'s merge mechanism squashed the
1562 ``ASTImporter`` uses the latter mechanism. We do import all function
1648 ``ASTImporter::ImportedDecls``. Whenever we create a node then we immediately
1692 ``ASTImporter::ImportDeclErrors`` and the ones which are associated with the
1694 be several ASTImporter objects which import into the same "to" context but from
1815 shared amongst the different ``ASTImporter`` instances if they happen to import
[all …]
/external/clang/lib/AST/
DCMakeLists.txt9 ASTImporter.cpp
DASTImporter.cpp31 ASTImporter &Importer;
34 explicit ASTNodeImporter(ASTImporter &Importer) : Importer(Importer) { } in ASTNodeImporter()
261 ASTImporter &ImporterRef = Importer; in ImportArray()
271 ASTImporter &ImporterRef = Importer; in ImportArrayChecked()
6035 ASTImporter::ASTImporter(ASTContext &ToContext, FileManager &ToFileManager, in ASTImporter() function in ASTImporter
6046 ASTImporter::~ASTImporter() { } in ~ASTImporter()
6048 QualType ASTImporter::Import(QualType FromT) { in Import()
6072 TypeSourceInfo *ASTImporter::Import(TypeSourceInfo *FromTSI) { in Import()
6086 Decl *ASTImporter::GetAlreadyImportedOrNull(Decl *FromD) { in GetAlreadyImportedOrNull()
6097 Decl *ASTImporter::Import(Decl *FromD) { in Import()
[all …]
/external/llvm-project/clang/lib/Frontend/
DASTMerge.cpp56 ASTImporter Importer(CI.getASTContext(), CI.getFileManager(), in ExecuteAction()
/external/clang/lib/Frontend/
DASTMerge.cpp55 ASTImporter Importer(CI.getASTContext(), in ExecuteAction()
/external/llvm-project/clang/lib/CrossTU/
DCrossTranslationUnit.cpp698 ASTImporter &Importer = getOrCreateASTImporter(Unit); in importDefinitionImpl()
746 ASTImporter &
754 ASTImporter *NewImporter = new ASTImporter( in getOrCreateASTImporter()
/external/llvm-project/llvm/utils/gn/secondary/clang/lib/AST/
DBUILD.gn50 "ASTImporter.cpp",
/external/clang/unittests/AST/
DASTImporterTest.cpp77 ASTImporter Importer(ToCtx, ToAST->getFileManager(), in testImport()

12