Lines Matching refs:FoundDecl
42 const NamedDecl *getCanonicalSymbolDeclaration(const NamedDecl *FoundDecl) { in getCanonicalSymbolDeclaration() argument
45 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(FoundDecl)) in getCanonicalSymbolDeclaration()
46 FoundDecl = CtorDecl->getParent(); in getCanonicalSymbolDeclaration()
47 else if (const auto *DtorDecl = dyn_cast<CXXDestructorDecl>(FoundDecl)) in getCanonicalSymbolDeclaration()
48 FoundDecl = DtorDecl->getParent(); in getCanonicalSymbolDeclaration()
54 return FoundDecl; in getCanonicalSymbolDeclaration()
64 AdditionalUSRFinder(const Decl *FoundDecl, ASTContext &Context) in AdditionalUSRFinder() argument
65 : FoundDecl(FoundDecl), Context(Context) {} in AdditionalUSRFinder()
70 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FoundDecl)) { in Find()
77 } else if (const auto *RecordDecl = dyn_cast<CXXRecordDecl>(FoundDecl)) { in Find()
80 dyn_cast<ClassTemplateDecl>(FoundDecl)) { in Find()
83 USRSet.insert(getUSRForDecl(FoundDecl)); in Find()
168 const Decl *FoundDecl; member in clang::tooling::__anon15b74ff20111::AdditionalUSRFinder
212 const NamedDecl *FoundDecl = QualifiedName.empty() in FindSymbol() local
216 if (FoundDecl == nullptr) { in FindSymbol()
240 FoundDecl = getCanonicalSymbolDeclaration(FoundDecl); in FindSymbol()
241 SpellingNames.push_back(FoundDecl->getNameAsString()); in FindSymbol()
242 AdditionalUSRFinder Finder(FoundDecl, Context); in FindSymbol()