Lines Matching refs:FoundDecl
41 const NamedDecl *getCanonicalSymbolDeclaration(const NamedDecl *FoundDecl) { in getCanonicalSymbolDeclaration() argument
42 if (!FoundDecl) in getCanonicalSymbolDeclaration()
46 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(FoundDecl)) in getCanonicalSymbolDeclaration()
47 FoundDecl = CtorDecl->getParent(); in getCanonicalSymbolDeclaration()
48 else if (const auto *DtorDecl = dyn_cast<CXXDestructorDecl>(FoundDecl)) in getCanonicalSymbolDeclaration()
49 FoundDecl = DtorDecl->getParent(); in getCanonicalSymbolDeclaration()
55 return FoundDecl; in getCanonicalSymbolDeclaration()
65 AdditionalUSRFinder(const Decl *FoundDecl, ASTContext &Context) in AdditionalUSRFinder() argument
66 : FoundDecl(FoundDecl), Context(Context) {} in AdditionalUSRFinder()
71 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FoundDecl)) { in Find()
78 } else if (const auto *RecordDecl = dyn_cast<CXXRecordDecl>(FoundDecl)) { in Find()
81 dyn_cast<ClassTemplateDecl>(FoundDecl)) { in Find()
84 USRSet.insert(getUSRForDecl(FoundDecl)); in Find()
182 const Decl *FoundDecl; member in clang::tooling::__anon9d7058540111::AdditionalUSRFinder
226 const NamedDecl *FoundDecl = QualifiedName.empty() in FindSymbol() local
230 if (FoundDecl == nullptr) { in FindSymbol()
254 FoundDecl = getCanonicalSymbolDeclaration(FoundDecl); in FindSymbol()
255 SpellingNames.push_back(FoundDecl->getNameAsString()); in FindSymbol()
256 AdditionalUSRFinder Finder(FoundDecl, Context); in FindSymbol()