Home
last modified time | relevance | path

Searched refs:ND (Results 1 – 25 of 207) sorted by relevance

123456789

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTImporterLookupTable.cpp127 assert(ND); in add()
129 add(DC, ND); in add()
132 add(ReDC, ND); in add()
136 assert(ND); in remove()
138 remove(DC, ND); in remove()
147 if (contains(ND->getDeclContext(), ND)) { in update()
154 add(ND); in update()
158 LookupTable[OldDC][ND->getDeclName()].remove(ND); in updateForced()
159 add(ND); in updateForced()
177 return lookup(DC, ND->getDeclName()).contains(ND); in contains()
[all …]
H A DMangle.cpp58 static bool isExternC(const NamedDecl *ND) { in isExternC() argument
59 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) in isExternC()
61 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) in isExternC()
85 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND); in getCallingConvMangling()
313 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock() local
314 if (!shouldMangleDeclName(ND) && ND->getIdentifier()) in mangleBlock()
315 Stream << ND->getIdentifier()->getName(); in mangleBlock()
322 mangleName(ND, Stream); in mangleBlock()
483 const NamedDecl *ND = cast<NamedDecl>(D); in getAllManglings() local
485 ASTContext &Ctx = ND->getASTContext(); in getAllManglings()
[all …]
H A DItaniumMangle.cpp142 if (isLambda(ND)) in getNextDiscriminator()
309 ND = cast<NamedDecl>(ND->getCanonicalDecl()); in write()
310 if (!isa<FunctionDecl>(ND) && !isa<VarDecl>(ND)) { in write()
485 ND = cast<NamedDecl>(ND->getCanonicalDecl()); in addSubstitution()
712 if (ND && ND->getFormalLinkage() == Linkage::Internal && in isInternalLinkageDecl()
1070 if (isLocalContainerContext(DC) && ND->hasLinkage() && !isLambda(ND)) in mangleNameWithAbiTags()
1182 } else if (isa<BuiltinTemplateDecl>(ND) || isa<ConceptDecl>(ND)) { in mangleUnscopedTemplateName()
1715 assert(ND); in mangleUnqualifiedName()
2275 if (isa<BuiltinTemplateDecl>(ND) || isa<ConceptDecl>(ND)) in mangleTemplatePrefix()
3024 mangleName(ND); in mangleNameOrStandardSubstitution()
[all …]
H A DLinkage.h90 static QueryType makeCacheKey(const NamedDecl *ND, LVComputationKind Kind) { in makeCacheKey() argument
91 return QueryType(ND, Kind.toBits()); in makeCacheKey()
94 std::optional<LinkageInfo> lookup(const NamedDecl *ND, in lookup() argument
96 auto Iter = CachedLinkageInfo.find(makeCacheKey(ND, Kind)); in lookup()
102 void cache(const NamedDecl *ND, LVComputationKind Kind, LinkageInfo Info) { in cache() argument
103 CachedLinkageInfo[makeCacheKey(ND, Kind)] = Info; in cache()
H A DMicrosoftMangle.cpp397 return ND == Structor || getStructor(ND) == Structor; in isStructorDecl()
1030 ND && in mangleUnqualifiedName()
1031 ((isa<FunctionDecl>(ND) && ND->hasAttr<CUDAGlobalAttr>()) || in mangleUnqualifiedName()
1192 if (isStructorDecl(ND)) { in mangleUnqualifiedName()
1206 if (isStructorDecl(ND)) in mangleUnqualifiedName()
1251 if (isa<TagDecl>(ND) || isa<VarDecl>(ND)) { in mangleNestedName()
1329 ND = cast<NamedDecl>(DC); in mangleNestedName()
1671 if (isa<FieldDecl>(ND) || isa<IndirectFieldDecl>(ND)) { in mangleTemplateArg()
1691 mangle(ND, "$1?"); in mangleTemplateArg()
1778 const NamedDecl *ND = in mangleTemplateArg() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp53 if (!isVisible(ND)) in WriteNamedDecl()
93 if (!ND) in WriteNamedDecl()
97 if (isa<CXXConstructorDecl>(ND) || isa<CXXDestructorDecl>(ND)) in WriteNamedDecl()
102 return {NameGen.getName(ND)}; in WriteNamedDecl()
111 if (isa<FieldDecl>(ND) || isa<ParmVarDecl>(ND)) in WriteNamedDecl()
128 ND->hasAttr<WeakRefAttr>() || ND->isWeakImported()); in WriteNamedDecl()
131 ND, in WriteNamedDecl()
163 if (!ND) in HandleNamedDecl()
166 switch (ND->getKind()) { in HandleNamedDecl()
211 if (!ND->getIdentifier()) in HandleNamedDecl()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporterLookupTable.h56 void add(DeclContext *DC, NamedDecl *ND);
57 void remove(DeclContext *DC, NamedDecl *ND);
63 void add(NamedDecl *ND);
64 void remove(NamedDecl *ND);
76 void update(NamedDecl *ND, DeclContext *OldDC);
80 void updateForced(NamedDecl *ND, DeclContext *OldDC);
86 bool contains(DeclContext *DC, NamedDecl *ND) const;
H A DDeclContextInternals.h84 void erase(NamedDecl *ND) { in erase() argument
85 erase_if([ND](NamedDecl *D) { return D == ND; }); in erase()
125 if (NamedDecl *ND = getAsDecl()) in getASTContext() local
126 return ND->getASTContext(); in getASTContext()
155 erase_if([](NamedDecl *ND) { return ND->isFromASTFile(); }); in removeExternalDecls()
164 erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls()
165 if (ND->isFromASTFile()) in replaceExternalDecls()
168 if (D->declarationReplaces(ND, /*IsKnownNewer=*/false)) in replaceExternalDecls()
248 if (auto *ND = N->Rest.dyn_cast<NamedDecl *>()) { in addOrReplaceDecl() local
249 if (D->declarationReplaces(ND, IsKnownNewer)) { in addOrReplaceDecl()
[all …]
H A DASTImporterSharedState.h59 if (auto *ND = dyn_cast<NamedDecl>(D)) in addDeclToLookup() local
60 LookupTable->add(ND); in addDeclToLookup()
65 if (auto *ND = dyn_cast<NamedDecl>(D)) in removeDeclFromLookup() local
66 LookupTable->remove(ND); in removeDeclFromLookup()
H A DDeclFriend.h148 if (NamedDecl *ND = getFriendDecl()) { in getSourceRange() local
149 if (const auto *FD = dyn_cast<FunctionDecl>(ND)) in getSourceRange()
151 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getSourceRange()
153 if (const auto *CTD = dyn_cast<ClassTemplateDecl>(ND)) in getSourceRange()
155 if (const auto *DD = dyn_cast<DeclaratorDecl>(ND)) { in getSourceRange()
159 return SourceRange(getFriendLoc(), ND->getEndLoc()); in getSourceRange()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFinder.cpp43 bool visitSymbolOccurrence(const NamedDecl *ND, in visitSymbolOccurrence() argument
45 if (!ND) in visitSymbolOccurrence()
54 Result = ND; in visitSymbolOccurrence()
108 bool VisitNamedDecl(const NamedDecl *ND) { in VisitNamedDecl() argument
109 if (!ND) in VisitNamedDecl()
112 if (Name != ND->getQualifiedNameAsString() && in VisitNamedDecl()
113 Name != "::" + ND->getQualifiedNameAsString()) in VisitNamedDecl()
115 Result = ND; in VisitNamedDecl()
H A DRenamingAction.cpp46 findSymbolOccurrences(const NamedDecl *ND, RefactoringRuleContext &Context) { in findSymbolOccurrences() argument
48 getUSRsForDeclaration(ND, Context.getASTContext()); in findSymbolOccurrences()
49 std::string PrevName = ND->getNameAsString(); in findSymbolOccurrences()
68 const NamedDecl *ND = in initiate() local
70 if (!ND) in initiate()
73 return RenameOccurrences(getCanonicalSymbolDeclaration(ND), in initiate()
77 const NamedDecl *RenameOccurrences::getRenameDecl() const { return ND; } in getRenameDecl()
94 const NamedDecl *ND = in initiate() local
96 if (!ND) in initiate()
100 return QualifiedRenameRule(ND, std::move(NewQualifiedName)); in initiate()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Rename/
H A DRenamingAction.h59 RenameOccurrences(const NamedDecl *ND, std::string NewName) in RenameOccurrences() argument
60 : ND(ND), NewName(std::move(NewName)) {} in RenameOccurrences()
65 const NamedDecl *ND; variable
78 QualifiedRenameRule(const NamedDecl *ND, in QualifiedRenameRule() argument
80 : ND(ND), NewQualifiedName(std::move(NewQualifiedName)) {} in QualifiedRenameRule()
86 const NamedDecl *ND; variable
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h36 bool visitSymbolOccurrence(const NamedDecl *ND, in visitSymbolOccurrence() argument
118 const NamespaceDecl *ND = NNS.getNestedNameSpecifier()->getAsNamespace(); in TraverseNestedNameSpecifierLoc() local
119 if (!visit(ND, NNS.getLocalBeginLoc(), NNS.getLocalEndLoc())) in TraverseNestedNameSpecifierLoc()
141 bool visit(const NamedDecl *ND, SourceLocation BeginLoc, in visit() argument
144 ND, SourceRange(BeginLoc, EndLoc)); in visit()
146 bool visit(const NamedDecl *ND, SourceLocation Loc) { in visit() argument
147 return visit(ND, Loc, Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts)); in visit()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.h66 const auto *const ND = llvm::dyn_cast_or_null<clang::NamedDecl>(ASTNode); in safeGetName() local
67 if (!ND) in safeGetName()
72 if (!ND->getDeclName().isIdentifier()) in safeGetName()
75 return ND->getName().str(); in safeGetName()
/freebsd/usr.sbin/ndp/
H A Dndp.c1013 #define ND nd.ndi in ifinfo() macro
1014 newflags = ND.flags; in ifinfo()
1067 ND.flags = newflags; in ifinfo()
1076 if (!ND.initialized) { in ifinfo()
1092 ND.basereachable / 1000, ND.basereachable % 1000, ND.basereachable); in ifinfo()
1095 ND.retrans); in ifinfo()
1108 rbuf = ND.randomseed0; in ifinfo()
1113 rbuf = ND.randomseed1; in ifinfo()
1118 rbuf = ND.randomid; in ifinfo()
1131 if (ND.flags) { in ifinfo()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.h104 auto *ND = dyn_cast_or_null<NamedDecl>(LexicalD); in numberAnonymousDeclsWithin() local
105 if (!ND || !needsAnonymousDeclarationNumber(ND)) in numberAnonymousDeclsWithin()
108 Visit(ND, Index++); in numberAnonymousDeclsWithin()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCodeComplete.cpp788 ND = ND->getUnderlyingDecl(); in isInterestingDecl()
934 ND = ND->getUnderlyingDecl(); in getDeclUsageType()
991 if (!ND) in getBasePriority()
1492 ND = ND->getUnderlyingDecl(); in IsOrdinaryName()
1510 ND = ND->getUnderlyingDecl(); in IsOrdinaryNonTypeName()
1546 ND = ND->getUnderlyingDecl(); in IsOrdinaryNonValueName()
1611 ND = ND->getUnderlyingDecl(); in IsType()
1619 ND = ND->getUnderlyingDecl(); in IsMember()
2773 if (!ND) in AddResultTypeChunk()
2778 if (isConstructor(ND) || isa<CXXConversionDecl>(ND)) in AddResultTypeChunk()
[all …]
H A DSemaLookup.cpp1344 R.addDecl(ND); in CppLookupName()
1481 R.addDecl(ND); in CppLookupName()
2033 return ND; in findAcceptableDecl()
2564 ND = TD; in LookupQualifiedName()
2669 R.addDecl(ND, AS); in LookupQualifiedName()
4012 ShadowMaps.back()[ND->getDeclName()].push_back(ND); in add()
4188 Consumer.FoundDecl(ND, Visited.checkHidden(ND), Ctx, InBaseClass); in lookupInDeclContext()
4332 if ((ND = Result.getAcceptableDecl(ND))) { in lookupInScope()
4333 Consumer.FoundDecl(ND, Visited.checkHidden(ND), nullptr, false); in lookupInScope()
4896 !(ND && ND->isAnonymousNamespace())) in buildContextChain()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/
H A DStandardLibrary.cpp264 for (const auto *ND = D; ND; in namespaceSymbols() local
265 ND = llvm::dyn_cast_or_null<NamespaceDecl>(ND->getParent())) in namespaceSymbols()
266 if (!ND->isInlineNamespace() && !ND->isAnonymousNamespace()) in namespaceSymbols()
267 Scope = ND->getName().str() + "::" + Scope; in namespaceSymbols()
307 if (const auto *ND = llvm::dyn_cast<NamedDecl>(D)) in operator ()() local
308 if (const auto *II = ND->getIdentifier()) in operator ()()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBasicValueFactory.cpp160 const NamedDecl *ND, llvm::ImmutableList<const CXXBaseSpecifier *> L) { in getPointerToMemberData() argument
162 PointerToMemberData::Profile(ID, ND, L); in getPointerToMemberData()
169 D = new (BPAlloc) PointerToMemberData(ND, L); in getPointerToMemberData()
196 const NamedDecl *ND = nullptr; in accumCXXBase() local
201 ND = PTMDT.get<const NamedDecl *>(); in accumCXXBase()
206 ND = PTMD->getDeclaratorDecl(); in accumCXXBase()
236 return getPointerToMemberData(ND, ReducedBaseSpecList); in accumCXXBase()
242 return getPointerToMemberData(ND, BaseSpecList); in accumCXXBase()
/freebsd/sys/contrib/device-tree/Bindings/iio/pressure/
H A Dhoneywell,hsc030pa.yaml73 150PA, 0.5ND, 001ND, 002ND, 004ND, 005ND, 010ND, 020ND, 030ND,
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.cpp226 const auto *ND = cast<NamedDecl>(D); in adjustTemplateImplicitInstantiation() local
228 getDeclContextForTemplateInstationPattern(ND)) { in adjustTemplateImplicitInstantiation()
229 for (const NamedDecl *BaseND : Pattern->lookup(ND->getDeclName())) { in adjustTemplateImplicitInstantiation()
232 if (BaseND->getKind() == ND->getKind()) in adjustTemplateImplicitInstantiation()
269 static bool shouldSkipNamelessDecl(const NamedDecl *ND) { in shouldSkipNamelessDecl() argument
270 return (ND->getDeclName().isEmpty() && !isa<TagDecl>(ND) && in shouldSkipNamelessDecl()
271 !isa<ObjCCategoryDecl>(ND)) || isa<CXXDeductionGuideDecl>(ND); in shouldSkipNamelessDecl()
288 } else if (auto ND = dyn_cast<NamedDecl>(Parent)) { in adjustParent() local
289 if (shouldSkipNamelessDecl(ND)) in adjustParent()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DAnalysisOrderChecker.cpp128 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl())) in evalCall() local
129 llvm::errs() << " (" << ND->getQualifiedNameAsString() << ')'; in evalCall()
141 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl())) in checkPreCall() local
142 llvm::errs() << " (" << ND->getQualifiedNameAsString() << ')'; in checkPreCall()
151 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl())) in checkPostCall() local
152 llvm::errs() << " (" << ND->getQualifiedNameAsString() << ')'; in checkPostCall()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DIssueHash.cpp93 if (const auto *ND = dyn_cast<NamedDecl>(D)) { in GetEnclosingDeclContextSignature() local
96 switch (ND->getKind()) { in GetEnclosingDeclContextSignature()
101 DeclName = ND->getQualifiedNameAsString(); in GetEnclosingDeclContextSignature()
108 DeclName = GetSignature(dyn_cast_or_null<FunctionDecl>(ND)); in GetEnclosingDeclContextSignature()
113 DeclName = ND->getQualifiedNameAsString(); in GetEnclosingDeclContextSignature()

123456789