Home
last modified time | relevance | path

Searched refs:FoundDecls (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUnusedAliasDeclsCheck.cpp30 FoundDecls[AliasDecl] = CharSourceRange::getCharRange( in check()
42 FoundDecls[AliasDecl] = CharSourceRange(); in check()
48 for (const auto &FoundDecl : FoundDecls) { in onEndOfTranslationUnit()
DUnusedAliasDeclsCheck.h32 llvm::DenseMap<const NamedDecl *, CharSourceRange> FoundDecls;
/external/llvm-project/clang/unittests/AST/
DASTImporterFixtures.cpp160 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()
DASTImporterTest.cpp4243 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/
DASTImporter.cpp2479 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/
DASTImporterTest.cpp84 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/
DASTImporter.cpp2318 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/
DSemaExprCXX.cpp174 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()