Home
last modified time | relevance | path

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

123456789

/llvm-project/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/clang/lib/AST/
H A DASTImporterLookupTable.cpp104 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() argument
110 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() argument
126 add(NamedDecl * ND) add() argument
135 remove(NamedDecl * ND) remove() argument
144 update(NamedDecl * ND,DeclContext * OldDC) update() argument
157 updateForced(NamedDecl * ND,DeclContext * OldDC) updateForced() argument
[all...]
H A DLinkage.h93 static QueryType makeCacheKey(const NamedDecl *ND, LVComputationKind Kind) { in makeCacheKey()
97 std::optional<LinkageInfo> lookup(const NamedDecl *ND, in lookup()
105 void cache(const NamedDecl *ND, LVComputationKind Kind, LinkageInfo Info) { in cache()
/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp41 bool WriteNamedDecl(const NamedDecl *ND, MangledSymbols &Symbols, int RDO) { in WriteNamedDecl()
49 auto isVisible = [](const NamedDecl *ND) -> bool { in WriteNamedDecl()
53 auto ignoreDecl = [this, isVisible](const NamedDecl *ND) -> bool { in WriteNamedDecl()
85 auto getParentFunctionDecl = [](const NamedDecl *ND) -> const NamedDecl * { in WriteNamedDecl()
93 auto getMangledNames = [](const NamedDecl *ND) -> std::vector<std::string> { in WriteNamedDecl()
163 bool HandleNamedDecl(const NamedDecl *ND, MangledSymbols &Symbols, int RDO) { in HandleNamedDecl()
284 for (const NamedDecl *ND : v.ValueDecls) in HandleTranslationUnit() local
286 for (const NamedDecl *ND : v.NamedDecls) in HandleTranslationUnit() local
/llvm-project/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
141 bool visit(const NamedDecl *ND, SourceLocation BeginLoc, in visit()
146 bool visit(const NamedDecl *ND, SourceLocation Loc) { in visit()
/llvm-project/clang/include/clang/AST/
H A DASTImporterSharedState.h59 if (auto *ND = dyn_cast<NamedDecl>(D)) in addDeclToLookup() local
65 if (auto *ND = dyn_cast<NamedDecl>(D)) in removeDeclFromLookup() local
H A DDeclContextInternals.h96 void erase(NamedDecl *ND) { in erase() argument
137 if (NamedDecl *ND = getAsDecl()) in getASTContext() local
255 if (auto *ND = N->Rest.dyn_cast<NamedDecl *>()) { addOrReplaceDecl() local
[all...]
/llvm-project/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()
246 const NamedDecl *ND; in run() local
/llvm-project/clang/unittests/Analysis/
H A DCloneDetectionTest.cpp80 ASSERT_TRUE(ND != nullptr); in TEST() local
99 ASSERT_TRUE(ND != nullptr); in TEST() local
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DConcatNestedNamespacesCheck.cpp96 bool ConcatNestedNamespacesCheck::unsupportedNamespace(const NamespaceDecl &ND, in unsupportedNamespace()
134 for (const NS &ND : Namespaces) { in reportDiagnostic() local
169 const NamespaceDecl &ND = *Result.Nodes.getNodeAs<NamespaceDecl>("namespace"); in check() local
/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.h69 const auto *const ND = llvm::dyn_cast_or_null<clang::NamedDecl>(ASTNode); safeGetName() local
/llvm-project/clang-tools-extra/include-cleaner/lib/
H A DWalkAST.cpp39 report(SourceLocation Loc,NamedDecl * ND,RefType RT=RefType::Explicit) report() argument
83 auto *ND = resolveTemplateName(TST->getTemplateName()); getMostRelevantTemplatePattern() local
192 reportSpecializations(SourceLocation Loc,NamedDecl * ND) reportSpecializations() argument
291 reportType(SourceLocation RefLoc,NamedDecl * ND) reportType() argument
[all...]
H A DFindHeaders.cpp80 if (const auto *ND = llvm::dyn_cast<NamedDecl>(&S.declaration())) symbolName() local
117 headerForAmbiguousStdSymbol(const NamedDecl * ND) headerForAmbiguousStdSymbol() argument
155 const auto *ND = llvm::cast<NamedDecl>(&S.declaration()); headersForSpecialSymbol() local
[all...]
/llvm-project/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp59 /// If \p ND is a template specialization, returns the described template. in getTemplateOrThis() argument
69 isPrivateProtoDecl(const NamedDecl & ND) isPrivateProtoDecl() argument
139 isPreferredDeclaration(const NamedDecl & ND,index::SymbolRoleSet Roles) isPreferredDeclaration() argument
173 isSpelled(SourceLocation Loc,const NamedDecl & ND) isSpelled() argument
462 shouldCollectSymbol(const NamedDecl & ND,const ASTContext & ASTCtx,const Options & Opts,bool IsMainFileOnly) shouldCollectSymbol() argument
521 const auto *ND = dyn_cast<NamedDecl>(Enclosing); getRefContainer() local
574 const NamedDecl *ND = dyn_cast<NamedDecl>(D); handleDeclOccurrence() local
792 processRelations(const NamedDecl & ND,const SymbolID & ID,ArrayRef<index::SymbolRelation> Relations) processRelations() argument
985 addDeclaration(const NamedDecl & ND,SymbolID ID,bool IsMainFileOnly) addDeclaration() argument
1061 addDefinition(const NamedDecl & ND,const Symbol & DeclSym) addDefinition() argument
[all...]
/llvm-project/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/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/clang/unittests/Tooling/RecursiveASTVisitorTests/
H A DNestedNameSpecifiers.cpp29 if (const NamespaceDecl *ND = TraverseNestedNameSpecifierLoc() local
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DStandaloneEmptyCheck.cpp129 Name, [](const NamedDecl *ND) { in check()
178 ArgRecordDecl->lookupDependentName(Name, [](const NamedDecl *ND) { in check()
/llvm-project/clang-tools-extra/clangd/
H A DASTSignals.cpp28 for (const NamedDecl *ND : Ref.Targets) { in derive() local
H A DQuality.cpp53 static SymbolQualitySignals::SymbolCategory categorize(const NamedDecl &ND) { in categorize() argument
154 static bool isInstanceMember(const NamedDecl *ND) { in isInstanceMember() argument
307 if (const NamedDecl *ND in computeASTSignals() local
[all...]
H A DAST.cpp48 getTemplateSpecializationArgLocs(const NamedDecl &ND) { in getTemplateSpecializationArgLocs() argument
177 printQualifiedName(const NamedDecl & ND) printQualifiedName() argument
199 getQualifierLoc(const NamedDecl & ND) getQualifierLoc() argument
219 printName(const ASTContext & Ctx,const NamedDecl & ND) printName() argument
260 printTemplateSpecializationArgs(const NamedDecl & ND) printTemplateSpecializationArgs() argument
421 if (const auto *ND = llvm::dyn_cast<NamedDecl>(&D)) hasReservedName() local
431 if (const auto *ND = llvm::dyn_cast<NamedDecl>(D)) hasReservedScope() local
663 getQualification(ASTContext & Context,const DeclContext * DestContext,SourceLocation InsertionPoint,const NamedDecl * ND) getQualification() argument
681 getQualification(ASTContext & Context,const DeclContext * DestContext,const NamedDecl * ND,llvm::ArrayRef<std::string> VisibleNamespaces) getQualification() argument
[all...]
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DUnusedUsingDeclsCheck.cpp143 if (const auto *ND = T->getAsTagDecl()) check() local
179 for (const NamedDecl *ND : ULE->decls()) { check() local
/llvm-project/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/llvm/include/llvm/MC/
H A DMCInstrInfo.h48 void InitMCInstrInfo(const MCInstrDesc *D, const unsigned *NI, const char *ND, in InitMCInstrInfo()

123456789