Home
last modified time | relevance | path

Searched defs:ND (Results 1 – 25 of 191) sorted by relevance

12345678

/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/Rename/
H A DRenamingAction.h59 RenameOccurrences(const NamedDecl *ND, std::string NewName) in RenameOccurrences()
65 const NamedDecl *ND; variable
78 QualifiedRenameRule(const NamedDecl *ND, in QualifiedRenameRule()
86 const NamedDecl *ND; variable
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DConcatNestedNamespacesCheck.cpp25 static bool anonymousOrInlineNamespace(const NamespaceDecl &ND) { in anonymousOrInlineNamespace()
29 static bool singleNamedNamespaceChild(const NamespaceDecl &ND) { in singleNamedNamespaceChild()
56 [&Result](const NamespaceDecl *ND) { in concatNamespaces()
79 const NamespaceDecl &ND = *Result.Nodes.getNodeAs<NamespaceDecl>("namespace"); in check() local
/llvm-project-15.0.7/clang/lib/AST/
H A DASTImporterLookupTable.cpp90 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add()
96 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove()
112 void ASTImporterLookupTable::add(NamedDecl *ND) { in add()
121 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove()
130 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update()
143 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced()
H A DLinkage.h90 static QueryType makeCacheKey(const NamedDecl *ND, LVComputationKind Kind) { in makeCacheKey()
94 llvm::Optional<LinkageInfo> lookup(const NamedDecl *ND, in lookup()
102 void cache(const NamedDecl *ND, LVComputationKind Kind, LinkageInfo Info) { in cache()
H A DMangle.cpp58 static bool isExternC(const NamedDecl *ND) { in isExternC()
67 const NamedDecl *ND) { in getCallingConvMangling()
309 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock() local
479 const NamedDecl *ND = cast<NamedDecl>(D); in getAllManglings() local
550 std::string getMangledStructor(const NamedDecl *ND, unsigned StructorType) { in getMangledStructor()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp40 bool WriteNamedDecl(const NamedDecl *ND, MangledSymbols &Symbols, int RDO) { in WriteNamedDecl()
48 auto isVisible = [](const NamedDecl *ND) -> bool { in WriteNamedDecl()
52 auto ignoreDecl = [this, isVisible](const NamedDecl *ND) -> bool { in WriteNamedDecl()
84 auto getParentFunctionDecl = [](const NamedDecl *ND) -> const NamedDecl * { in WriteNamedDecl()
92 auto getMangledNames = [](const NamedDecl *ND) -> std::vector<std::string> { in WriteNamedDecl()
162 bool HandleNamedDecl(const NamedDecl *ND, MangledSymbols &Symbols, int RDO) { in HandleNamedDecl()
283 for (const NamedDecl *ND : v.ValueDecls) in HandleTranslationUnit() local
285 for (const NamedDecl *ND : v.NamedDecls) in HandleTranslationUnit() local
/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h36 bool visitSymbolOccurrence(const NamedDecl *ND, in visitSymbolOccurrence()
118 const NamespaceDecl *ND = NNS.getNestedNameSpecifier()->getAsNamespace(); in TraverseNestedNameSpecifierLoc() local
140 bool visit(const NamedDecl *ND, SourceLocation BeginLoc, in visit()
145 bool visit(const NamedDecl *ND, SourceLocation Loc) { in visit()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTImporterSharedState.h58 if (auto *ND = dyn_cast<NamedDecl>(D)) in addDeclToLookup() local
64 if (auto *ND = dyn_cast<NamedDecl>(D)) in removeDeclFromLookup() local
H A DDeclContextInternals.h84 void erase(NamedDecl *ND) { in erase()
125 if (NamedDecl *ND = getAsDecl()) in getASTContext() local
248 if (auto *ND = N->Rest.dyn_cast<NamedDecl *>()) { in addOrReplaceDecl() local
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllSymbols.cpp46 std::vector<SymbolInfo::Context> GetContexts(const NamedDecl *ND) { in GetContexts()
73 CreateSymbolInfo(const NamedDecl *ND, const SourceManager &SM, in CreateSymbolInfo()
244 const NamedDecl *ND; in run() local
/llvm-project-15.0.7/clang/unittests/Analysis/
H A DCloneDetectionTest.cpp80 const auto ND = dyn_cast<const FunctionDecl>(Clone.getContainingDecl()); in TEST() local
99 const auto ND = dyn_cast<const FunctionDecl>(Clone.getContainingDecl()); in TEST() local
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.h66 const auto *const ND = llvm::dyn_cast_or_null<clang::NamedDecl>(ASTNode); in safeGetName() local
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp42 const NamedDecl &getTemplateOrThis(const NamedDecl &ND) { in getTemplateOrThis()
52 bool isPrivateProtoDecl(const NamedDecl &ND) { in isPrivateProtoDecl()
120 bool isPreferredDeclaration(const NamedDecl &ND, index::SymbolRoleSet Roles) { in isPreferredDeclaration()
168 const auto *ND = dyn_cast<NamedDecl>(Enclosing); in getRefContainer() local
179 bool isSpelled(SourceLocation Loc, const NamedDecl &ND) { in isSpelled()
466 bool SymbolCollector::shouldCollectSymbol(const NamedDecl &ND, in shouldCollectSymbol()
564 const NamedDecl *ND = dyn_cast<NamedDecl>(D); in handleDeclOccurrence() local
778 const NamedDecl &ND, const SymbolID &ID, in processRelations()
873 const Symbol *SymbolCollector::addDeclaration(const NamedDecl &ND, SymbolID ID, in addDeclaration()
945 void SymbolCollector::addDefinition(const NamedDecl &ND, in addDefinition()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DQualityTests.cpp144 *dyn_cast<UsingDecl>(&findDecl(AST, [&](const NamedDecl &ND) { in TEST()
374 const NamedDecl *CtorDecl = &findDecl(AST, [](const NamedDecl &ND) { in TEST()
437 const NamedDecl *CtorDecl = &findDecl(AST, [](const NamedDecl &ND) { in TEST()
441 const NamedDecl *DtorDecl = &findDecl(AST, [](const NamedDecl &ND) { in TEST()
469 const NamedDecl *Operator = &findDecl(AST, [](const NamedDecl &ND) { in TEST()
/llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/
H A DNestedNameSpecifiers.cpp29 if (const NamespaceDecl *ND = in TraverseNestedNameSpecifierLoc() local
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFinder.cpp43 bool visitSymbolOccurrence(const NamedDecl *ND, in visitSymbolOccurrence()
108 bool VisitNamedDecl(const NamedDecl *ND) { in VisitNamedDecl()
H A DRenamingAction.cpp46 findSymbolOccurrences(const NamedDecl *ND, RefactoringRuleContext &Context) { in findSymbolOccurrences()
68 const NamedDecl *ND = in initiate() local
94 const NamedDecl *ND = in initiate() local
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DASTSignals.cpp23 for (const NamedDecl *ND : Ref.Targets) { in derive() local
H A DAST.cpp48 getTemplateSpecializationArgLocs(const NamedDecl &ND) { in getTemplateSpecializationArgLocs()
182 std::string printQualifiedName(const NamedDecl &ND) { in printQualifiedName()
201 NestedNameSpecifierLoc getQualifierLoc(const NamedDecl &ND) { in getQualifierLoc()
221 std::string printName(const ASTContext &Ctx, const NamedDecl &ND) { in printName()
262 std::string printTemplateSpecializationArgs(const NamedDecl &ND) { in printTemplateSpecializationArgs()
403 if (const auto *ND = llvm::dyn_cast<NamedDecl>(&D)) in hasReservedName() local
413 if (const auto *ND = llvm::dyn_cast<NamedDecl>(D)) in hasReservedScope() local
640 const NamedDecl *ND) { in getQualification()
658 const NamedDecl *ND, in getQualification()
H A DQuality.cpp53 static SymbolQualitySignals::SymbolCategory categorize(const NamedDecl &ND) { in categorize()
154 static bool isInstanceMember(const NamedDecl *ND) { in isInstanceMember()
306 if (const NamedDecl *ND = SemaResult.getDeclaration()) { in computeASTSignals() local
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConfusableIdentifierCheck.cpp114 static bool isMemberOf(const NamedDecl *ND, const CXXRecordDecl *RD) { in isMemberOf()
149 if (const auto *ND = Result.Nodes.getNodeAs<NamedDecl>("nameddecl")) { in check() local
/llvm-project-15.0.7/clang-tools-extra/include-cleaner/lib/
H A DWalkAST.cpp20 void report(SourceLocation Loc, NamedDecl *ND) { in report()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DAnalysisOrderChecker.cpp128 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl())) in evalCall() local
141 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl())) in checkPreCall() local
151 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl())) in checkPostCall() local
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCInstrInfo.h48 void InitMCInstrInfo(const MCInstrDesc *D, const unsigned *NI, const char *ND, in InitMCInstrInfo()
/llvm-project-15.0.7/clang/unittests/AST/
H A DNamedDeclPrinterTest.cpp45 const NamedDecl *ND = Result.Nodes.getNodeAs<NamedDecl>("id"); in run() local
83 [=](llvm::raw_ostream &Out, const NamedDecl *ND) { in PrintedNamedDeclMatches()

12345678