Lines Matching refs:ND

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()
247 discriminator = ++Discriminator[std::make_pair(DC, ND->getIdentifier())]; in getNextDiscriminator()
408 bool isStructorDecl(const NamedDecl *ND) const { in isStructorDecl()
409 return ND == Structor || getStructor(ND) == Structor; in isStructorDecl()
1019 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in isTemplate() local
1021 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in isTemplate()
1030 dyn_cast<ClassTemplateSpecializationDecl>(ND)) { in isTemplate()
1037 dyn_cast<VarTemplateSpecializationDecl>(ND)) { in isTemplate()
1047 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleUnqualifiedName() local
1083 ArgBackRefMap::iterator Found = TemplateArgBackReferences.find(ND); in mangleUnqualifiedName()
1086 TemplateArgStringMap::iterator Found = TemplateArgStrings.find(ND); in mangleUnqualifiedName()
1102 TemplateArgBackReferences[ND] = in mangleUnqualifiedName()
1105 TemplateArgStrings[ND] = in mangleUnqualifiedName()
1121 ND && in mangleUnqualifiedName()
1122 ((isa<FunctionDecl>(ND) && ND->hasAttr<CUDAGlobalAttr>()) || in mangleUnqualifiedName()
1123 (isa<FunctionTemplateDecl>(ND) && in mangleUnqualifiedName()
1124 cast<FunctionTemplateDecl>(ND) in mangleUnqualifiedName()
1137 assert(ND && "mangling empty name without declaration"); in mangleUnqualifiedName()
1139 if (const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(ND)) { in mangleUnqualifiedName()
1146 if (const DecompositionDecl *DD = dyn_cast<DecompositionDecl>(ND)) { in mangleUnqualifiedName()
1156 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) { in mangleUnqualifiedName()
1170 if (const MSGuidDecl *GD = dyn_cast<MSGuidDecl>(ND)) { in mangleUnqualifiedName()
1180 if (const auto *TPO = dyn_cast<TemplateParamObjectDecl>(ND)) { in mangleUnqualifiedName()
1188 const TagDecl *TD = cast<TagDecl>(ND); in mangleUnqualifiedName()
1283 if (isStructorDecl(ND)) { in mangleUnqualifiedName()
1297 if (isStructorDecl(ND)) in mangleUnqualifiedName()
1314 mangleOperatorName(Name.getCXXOverloadedOperator(), ND->getLocation()); in mangleUnqualifiedName()
1334 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleNestedName() local
1336 if (const auto *ID = dyn_cast<IndirectFieldDecl>(ND)) in mangleNestedName()
1340 const DeclContext *DC = getEffectiveDeclContext(ND); in mangleNestedName()
1342 if (isa<TagDecl>(ND) || isa<VarDecl>(ND)) { in mangleNestedName()
1344 if (Context.getNextDiscriminator(ND, Disc)) { in mangleNestedName()
1390 if (const auto *ND = dyn_cast<NamedDecl>(MC)) in mangleNestedName() local
1391 mangleUnqualifiedName(ND); in mangleNestedName()
1420 ND = cast<NamedDecl>(DC); in mangleNestedName()
1421 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in mangleNestedName()
1425 mangleUnqualifiedName(ND); in mangleNestedName()
1428 if (const auto *LDADC = getLambdaDefaultArgumentDeclContext(ND)) { in mangleNestedName()
1767 const NamedDecl *ND = TA.getAsDecl(); in mangleTemplateArg() local
1768 if (isa<FieldDecl>(ND) || isa<IndirectFieldDecl>(ND)) { in mangleTemplateArg()
1769 mangleMemberDataPointer(cast<CXXRecordDecl>(ND->getDeclContext()) in mangleTemplateArg()
1771 cast<ValueDecl>(ND), in mangleTemplateArg()
1774 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in mangleTemplateArg()
1786 auto *TPO = cast<TemplateParamObjectDecl>(ND); in mangleTemplateArg()
1789 } else if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) { in mangleTemplateArg()
1793 mangle(ND, "$1?"); in mangleTemplateArg()
1880 const NamedDecl *ND = in mangleTemplateArg() local
1882 if (const auto *TD = dyn_cast<TagDecl>(ND)) { in mangleTemplateArg()
1884 } else if (isa<TypeAliasDecl>(ND)) { in mangleTemplateArg()
1886 mangleName(ND); in mangleTemplateArg()