/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ASTImporterLookupTable.cpp | 104 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() argument 105 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add() 107 Decls.insert(ND); in add() 110 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() argument 111 const DeclarationName Name = ND->getDeclName(); in remove() 113 bool EraseResult = Decls.remove(ND); in remove() 126 void ASTImporterLookupTable::add(NamedDecl *ND) { in add() argument 127 assert(ND); in add() 128 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add() 129 add(DC, ND); in add() [all …]
|
H A D | Mangle.cpp | 58 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() 67 const NamedDecl *ND) { in getCallingConvMangling() argument 74 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) in getCallingConvMangling() 81 if (Context.getLangOpts().CPlusPlus && !isExternC(ND) && in getCallingConvMangling() 85 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND); in getCallingConvMangling() 312 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock() local 313 if (!shouldMangleDeclName(ND) && ND->getIdentifier()) in mangleBlock() 314 Stream << ND->getIdentifier()->getName(); in mangleBlock() [all …]
|
H A D | ItaniumMangle.cpp | 62 static bool isLambda(const NamedDecl *ND) { in isLambda() argument 63 const CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(ND); in isLambda() 96 bool isUniqueInternalLinkageDecl(const NamedDecl *ND) override; 139 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { in getNextDiscriminator() argument 141 if (isLambda(ND)) in getNextDiscriminator() 145 if (const TagDecl *Tag = dyn_cast<TagDecl>(ND)) { in getNextDiscriminator() 151 if (ND->isExternallyVisible()) { in getNextDiscriminator() 152 unsigned discriminator = getASTContext().getManglingNumber(ND, isAux()); in getNextDiscriminator() 160 unsigned &discriminator = Uniquifier[ND]; in getNextDiscriminator() 162 const DeclContext *DC = getEffectiveDeclContext(ND); in getNextDiscriminator() [all …]
|
H A D | Linkage.h | 93 static QueryType makeCacheKey(const NamedDecl *ND, LVComputationKind Kind) { in makeCacheKey() argument 94 return QueryType(ND, Kind.toBits()); in makeCacheKey() 97 std::optional<LinkageInfo> lookup(const NamedDecl *ND, in lookup() argument 99 auto Iter = CachedLinkageInfo.find(makeCacheKey(ND, Kind)); in lookup() 105 void cache(const NamedDecl *ND, LVComputationKind Kind, LinkageInfo Info) { in cache() argument 106 CachedLinkageInfo[makeCacheKey(ND, Kind)] = Info; in cache()
|
H A D | MicrosoftMangle.cpp | 130 static const FunctionDecl *getStructor(const NamedDecl *ND) { in getStructor() argument 131 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getStructor() 134 const auto *FD = cast<FunctionDecl>(ND); in getStructor() 216 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { in getNextDiscriminator() argument 217 const DeclContext *DC = getEffectiveDeclContext(ND); in getNextDiscriminator() 223 if (const auto *RD = dyn_cast<CXXRecordDecl>(ND)) { in getNextDiscriminator() 231 if (ND->isExternallyVisible()) { in getNextDiscriminator() 232 disc = getASTContext().getManglingNumber(ND, isAux()); in getNextDiscriminator() 237 if (const TagDecl *Tag = dyn_cast<TagDecl>(ND)) { in getNextDiscriminator() 245 unsigned &discriminator = Uniquifier[ND]; in getNextDiscriminator() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InterfaceStubFunctionsConsumer.cpp | 41 bool WriteNamedDecl(const NamedDecl *ND, MangledSymbols &Symbols, int RDO) { in WriteNamedDecl() argument 49 auto isVisible = [](const NamedDecl *ND) -> bool { in WriteNamedDecl() argument 50 return ND->getVisibility() == DefaultVisibility; in WriteNamedDecl() 53 auto ignoreDecl = [this, isVisible](const NamedDecl *ND) -> bool { in WriteNamedDecl() argument 54 if (!isVisible(ND)) in WriteNamedDecl() 57 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) { in WriteNamedDecl() 68 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in WriteNamedDecl() 85 auto getParentFunctionDecl = [](const NamedDecl *ND) -> const NamedDecl * { in WriteNamedDecl() argument 86 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) in WriteNamedDecl() 93 auto getMangledNames = [](const NamedDecl *ND) -> std::vector<std::string> { in WriteNamedDecl() argument [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTImporterLookupTable.h | 56 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 D | DeclContextInternals.h | 96 void erase(NamedDecl *ND) { in erase() argument 97 erase_if([ND](NamedDecl *D) { return D == ND; }); in erase() 137 if (NamedDecl *ND = getAsDecl()) in getASTContext() local 138 return ND->getASTContext(); in getASTContext() 167 erase_if([](NamedDecl *ND) { return ND->isFromASTFile(); }); in removeExternalDecls() 176 DeclListNode::Decls *Tail = erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls() 177 if (ND->isFromASTFile()) in replaceExternalDecls() 183 if (D->getModuleOwnershipKind() <= ND->getModuleOwnershipKind() && in replaceExternalDecls() 184 D->declarationReplaces(ND, /*IsKnownNewer=*/false)) in replaceExternalDecls() 255 if (auto *ND = N->Rest.dyn_cast<NamedDecl *>()) { in addOrReplaceDecl() local [all …]
|
H A D | ASTImporterSharedState.h | 59 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 D | DeclFriend.h | 148 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 D | USRFinder.cpp | 43 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 D | RenamingAction.cpp | 46 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() 81 Expected<SymbolOccurrences> Occurrences = findSymbolOccurrences(ND, Context); in createSourceReplacements() 94 const NamedDecl *ND = in initiate() local 96 if (!ND) in initiate() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Rename/ |
H A D | RenamingAction.h | 59 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 D | RecursiveSymbolVisitor.h | 36 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 D | ASTUtils.h | 69 const auto *const ND = llvm::dyn_cast_or_null<clang::NamedDecl>(ASTNode); in safeGetName() local 70 if (!ND) in safeGetName() 75 if (!ND->getDeclName().isIdentifier()) in safeGetName() 78 return ND->getName().str(); in safeGetName()
|
/freebsd/usr.sbin/ndp/ |
H A D | ndp.c | 1012 #define ND nd.ndi in ifinfo() macro 1013 newflags = ND.flags; in ifinfo() 1062 SETVALUE("basereachable", ND.basereachable); in ifinfo() 1063 SETVALUE("retrans", ND.retrans); in ifinfo() 1064 SETVALUE("curhlim", ND.chlim); in ifinfo() 1066 ND.flags = newflags; in ifinfo() 1075 if (!ND.initialized) { in ifinfo() 1087 xo_emit("linkmtu={:linkmtu/%d}", ND.linkmtu); in ifinfo() 1088 xo_emit(", maxmtu={:maxmtu/%d}", ND.maxmtu); in ifinfo() 1089 xo_emit(", curhlim={:curhlim/%d}", ND.chlim); in ifinfo() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTCommon.h | 80 auto *ND = dyn_cast_or_null<NamedDecl>(LexicalD); in numberAnonymousDeclsWithin() local 81 if (!ND || !needsAnonymousDeclarationNumber(ND)) in numberAnonymousDeclsWithin() 84 Visit(ND, Index++); in numberAnonymousDeclsWithin()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCodeComplete.cpp | 118 void Add(const NamedDecl *ND, unsigned Index) { in Add() argument 121 DeclOrVector = ND; in Add() 137 DeclIndexPair(ND, Index)); in Add() 313 bool isInterestingDecl(const NamedDecl *ND, 322 bool canFunctionBeCalled(const NamedDecl *ND, QualType BaseExprType) const; 391 bool IsOrdinaryName(const NamedDecl *ND) const; 392 bool IsOrdinaryNonTypeName(const NamedDecl *ND) const; 393 bool IsIntegralConstantValue(const NamedDecl *ND) const; 394 bool IsOrdinaryNonValueName(const NamedDecl *ND) const; 395 bool IsNestedNameSpecifier(const NamedDecl *ND) const; [all …]
|
H A D | SemaLookup.cpp | 1334 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName() local 1356 R.addDecl(ND); in CppLookupName() 1398 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName() local 1399 R.addDecl(ND); in CppLookupName() 1487 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName() local 1493 R.addDecl(ND); in CppLookupName() 1541 void Sema::makeMergedDefinitionVisible(NamedDecl *ND) { in makeMergedDefinitionVisible() argument 1543 Context.mergeDefinitionIntoModule(ND, M); in makeMergedDefinitionVisible() 1546 ND->setVisibleDespiteOwningModule(); in makeMergedDefinitionVisible() 1550 if (auto *TD = dyn_cast<TemplateDecl>(ND)) in makeMergedDefinitionVisible() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/ |
H A D | StandardLibrary.cpp | 266 for (const auto *ND = D; ND; in namespaceSymbols() local 267 ND = llvm::dyn_cast_or_null<NamespaceDecl>(ND->getParent())) in namespaceSymbols() 268 if (!ND->isInlineNamespace() && !ND->isAnonymousNamespace()) in namespaceSymbols() 269 Scope = ND->getName().str() + "::" + Scope; in namespaceSymbols() 309 if (const auto *ND = llvm::dyn_cast<NamedDecl>(D)) in operator ()() local 310 if (const auto *II = ND->getIdentifier()) in operator ()()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | AnalysisOrderChecker.cpp | 128 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/Index/ |
H A D | IndexTypeSourceInfo.cpp | 61 TypedefNameDecl *ND = TL.getTypedefNameDecl(); in VisitTypedefTypeLoc() local 62 if (ND->isTransparentTag()) { in VisitTypedefTypeLoc() 63 TagDecl *Underlying = ND->getUnderlyingType()->getAsTagDecl(); in VisitTypedefTypeLoc() 68 TRY_TO(IndexCtx.handleReference(ND, Loc, in VisitTypedefTypeLoc() 76 TRY_TO(IndexCtx.handleReference(ND, Loc, in VisitTypedefTypeLoc() 230 Name, [](const NamedDecl *ND) { return isa<TypeDecl>(ND); }); in VisitDependentNameTypeLoc() argument
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | IssueHash.cpp | 93 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()
|
/freebsd/sys/netinet6/ |
H A D | nd6.c | 122 /* preventing too many loops in ND option parsing */ 123 VNET_DEFINE_STATIC(int, nd6_maxndopt) = 10; /* max # of ND options allowed */ 126 * ND entries */ 350 * Reset ND level link MTU. This function is called when the physical MTU 351 * changes, which means we might have to adjust the ND level MTU. 404 * Take one ND option. 452 * Parse multiple ND options. 453 * This function is much easier to use, for ND routines that do not need 1651 #define ND ndi->ndi in nd6_ioctl() macro 1653 bzero(&ND, sizeo in nd6_ioctl() [all...] |
/freebsd/sys/netpfil/ipfw/ |
H A D | dn_sched_rr.c | 212 ND("called"); in rr_config() 227 ND("called"); in rr_new_sched() 237 ND("called"); in rr_free_sched() 269 ND("called, q->quantum %d", q->quantum); in rr_new_queue() 285 ND("called"); in rr_free_queue()
|