Home
last modified time | relevance | path

Searched refs:FromD (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTImporter.h349 llvm::Expected<Decl *> Import(Decl *FromD);
350 llvm::Expected<const Decl *> Import(const Decl *FromD) { in Import() argument
351 return Import(const_cast<Decl *>(FromD)); in Import()
360 Decl *GetAlreadyImportedOrNull(const Decl *FromD) const;
374 auto *FromD = dyn_cast<DeclT>(FromI->second); in getImportedFromDecl() local
375 if (!FromD) in getImportedFromDecl()
377 return FromD; in getImportedFromDecl()
549 void RegisterImportedDecl(Decl *FromD, Decl *ToD);
567 llvm::Optional<ASTImportError> getImportDeclErrorIfAny(Decl *FromD) const;
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp1705 Import(FromD, Lang_CXX03); in TEST_P()
2019 FromD->setIsUsed(); in TEST_P()
2511 auto *FromD = in TEST_P() local
4015 auto *FromD = in TEST_P() local
6711 DT *FromD = in importAttr() local
6713 ASSERT_TRUE(FromD); in importAttr()
6764 ASSERT_TRUE(FromD); in TEST_P()
6796 ASSERT_TRUE(FromD); in TEST_P()
7220 auto *FromD = in TEST_P() local
7296 ASSERT_TRUE(FromD); in TEST_P()
[all …]
H A DASTImporterGenericRedeclTest.cpp184 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition() local
185 ASSERT_FALSE(FromD->isThisDeclarationADefinition()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
187 Decl *ImportedD = Import(FromD, Lang_CXX03); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
201 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_DefinitionShouldBeImportedAsADefinition() local
202 ASSERT_TRUE(FromD->isThisDeclarationADefinition()); in TypedTest_DefinitionShouldBeImportedAsADefinition()
204 Decl *ImportedD = Import(FromD, Lang_CXX03); in TypedTest_DefinitionShouldBeImportedAsADefinition()
378 auto *FromD = // Definition in TypedTest_WholeRedeclChainIsImportedAtOnce() local
380 ASSERT_TRUE(FromD->isThisDeclarationADefinition()); in TypedTest_WholeRedeclChainIsImportedAtOnce()
382 Decl *ImportedD = Import(FromD, Lang_CXX03); in TypedTest_WholeRedeclChainIsImportedAtOnce()
394 Import(FromD, Lang_CXX03); in TypedTest_ImportPrototypeThenProtoAndDefinition()
[all …]
H A DASTImporterODRStrategiesTest.cpp264 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportAfter() local
266 auto Result = importOrError(FromD, getLang()); in TypedTest_ImportAfter()
/llvm-project-15.0.7/clang/lib/AST/
H A DExternalASTMerger.cpp126 llvm::Expected<Decl *> ImportImpl(Decl *FromD) override { in ImportImpl() argument
128 return ASTImporter::ImportImpl(FromD); in ImportImpl()
164 Decl *Persistent = SourceMerger->FindOriginalDecl(FromD); in ImportImpl()
167 return ASTImporter::ImportImpl(FromD); in ImportImpl()
183 MapImported(FromD, D); in ImportImpl()
497 for (NamedDecl *FromD : Result) { in FindExternalVisibleDeclsByName()
498 FilterFoundDecl(std::make_pair(FromD, &Forward)); in FindExternalVisibleDeclsByName()
H A DASTImporter.cpp294 if (FromD->isUsed()) in InitializeImportedDecl()
296 if (FromD->isImplicit()) in InitializeImportedDecl()
957 for (Decl *FromD : DG) { in import()
1765 if (!FromD) in ImportDefinitionIfNeeded()
1967 if (FromD->getDeclContext() != FromD->getLexicalDeclContext()) { in ImportDeclContext()
8472 MapImported(FromD, ToD); in RegisterImportedDecl()
8824 if (!FromD) in Import()
8828 ImportPath.push(FromD); in Import()
8958 if (FromD->hasAttrs()) in Import()
8968 Imported(FromD, ToD); in Import()
[all …]
/llvm-project-15.0.7/clang/docs/
H A DLibASTImporter.rst50 ErrorOrDecl Import(Decl *FromD) {
52 FoundDeclsList = Look up all Decls in the "to" Ctx with the same name of FromD;
54 if (StructurallyEquivalentDecls(FoundDecl, FromD)) {
56 Mark FromD as imported;
66 Mark FromD as imported;