Searched refs:FoundDecls (Results 1 – 8 of 8) sorted by relevance
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
D | UnusedAliasDeclsCheck.cpp | 30 FoundDecls[AliasDecl] = CharSourceRange::getCharRange( in check() 42 FoundDecls[AliasDecl] = CharSourceRange(); in check() 48 for (const auto &FoundDecl : FoundDecls) { in onEndOfTranslationUnit()
|
D | UnusedAliasDeclsCheck.h | 32 llvm::DenseMap<const NamedDecl *, CharSourceRange> FoundDecls;
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTImporterFixtures.cpp | 160 SmallVector<NamedDecl *, 1> FoundDecls; in getImportedDecl() local 162 FoundDecls); in getImportedDecl() 164 assert(FoundDecls.size() == 1); in getImportedDecl() 167 FromTU.import(SharedStatePtr, ToAST.get(), FoundDecls.front()); in getImportedDecl() 170 return std::make_tuple(*FoundDecls.begin(), Imported); in getImportedDecl()
|
D | ASTImporterTest.cpp | 4243 SmallVector<NamedDecl *, 2> FoundDecls; in TEST_P() local 4244 FooDC->getRedeclContext()->localUncachedLookup(FooName, FoundDecls); in TEST_P() 4245 EXPECT_EQ(FoundDecls.size(), 0u); in TEST_P() 4248 FooLexicalDC->getRedeclContext()->localUncachedLookup(FooName, FoundDecls); in TEST_P() 4249 EXPECT_EQ(FoundDecls.size(), 0u); in TEST_P() 4279 SmallVector<NamedDecl *, 2> FoundDecls; in TEST_P() local 4280 FooDC->getRedeclContext()->localUncachedLookup(FooName, FoundDecls); in TEST_P() 4281 EXPECT_EQ(FoundDecls.size(), 0u); in TEST_P() 4284 FooLexicalDC->getRedeclContext()->localUncachedLookup(FooName, FoundDecls); in TEST_P() 4285 EXPECT_EQ(FoundDecls.size(), 0u); in TEST_P() [all …]
|
/external/clang/lib/AST/ |
D | ASTImporter.cpp | 2479 SmallVector<NamedDecl *, 2> FoundDecls; in VisitNamespaceDecl() local 2480 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitNamespaceDecl() 2481 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitNamespaceDecl() 2482 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_Namespace)) in VisitNamespaceDecl() 2485 if (NamespaceDecl *FoundNS = dyn_cast<NamespaceDecl>(FoundDecls[I])) { in VisitNamespaceDecl() 2491 ConflictingDecls.push_back(FoundDecls[I]); in VisitNamespaceDecl() 2545 SmallVector<NamedDecl *, 2> FoundDecls; in VisitTypedefNameDecl() local 2546 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitTypedefNameDecl() 2547 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitTypedefNameDecl() 2548 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitTypedefNameDecl() [all …]
|
/external/clang/unittests/AST/ |
D | ASTImporterTest.cpp | 84 SmallVector<NamedDecl *, 4> FoundDecls; in testImport() local 86 ImportDeclName, FoundDecls); in testImport() 88 if (FoundDecls.size() != 1) in testImport() 91 auto Imported = Importer.Import(*FoundDecls.begin()); in testImport()
|
/external/llvm-project/clang/lib/AST/ |
D | ASTImporter.cpp | 2318 auto FoundDecls = Importer.findDeclsInToCtx(DC, Name); in VisitNamespaceDecl() local 2319 for (auto *FoundDecl : FoundDecls) { in VisitNamespaceDecl() 2436 auto FoundDecls = Importer.findDeclsInToCtx(DC, Name); in VisitTypedefNameDecl() local 2437 for (auto *FoundDecl : FoundDecls) { in VisitTypedefNameDecl() 2527 auto FoundDecls = Importer.findDeclsInToCtx(DC, Name); in VisitTypeAliasTemplateDecl() local 2528 for (auto *FoundDecl : FoundDecls) { in VisitTypeAliasTemplateDecl() 2630 auto FoundDecls = in VisitEnumDecl() local 2632 for (auto *FoundDecl : FoundDecls) { in VisitEnumDecl() 2731 auto FoundDecls = in VisitRecordDecl() local 2733 if (!FoundDecls.empty()) { in VisitRecordDecl() [all …]
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaExprCXX.cpp | 174 llvm::SmallVector<NamedDecl*, 8> FoundDecls; in getDestructorName() local 209 FoundDecls.push_back(D); in getDestructorName() 366 unsigned NumNonExtensionDecls = FoundDecls.size(); in getDestructorName() 392 Diag(FoundDecls.back()->getLocation(), diag::note_destructor_type_here) in getDestructorName() 403 FoundDecls.resize(NumNonExtensionDecls); in getDestructorName() 406 std::stable_sort(FoundDecls.begin(), FoundDecls.end(), in getDestructorName() 426 if (FoundDecls.empty()) { in getDestructorName() 430 } else if (!SearchType.isNull() && FoundDecls.size() == 1) { in getDestructorName() 431 if (auto *TD = dyn_cast<TypeDecl>(FoundDecls[0]->getUnderlyingDecl())) { in getDestructorName() 447 for (NamedDecl *FoundD : FoundDecls) { in getDestructorName()
|