Lines Matching refs:ND

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()
309 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock() local
310 if (!shouldMangleDeclName(ND) && ND->getIdentifier()) in mangleBlock()
311 Stream << ND->getIdentifier()->getName(); in mangleBlock()
318 mangleName(ND, Stream); in mangleBlock()
479 const NamedDecl *ND = cast<NamedDecl>(D); in getAllManglings() local
481 ASTContext &Ctx = ND->getASTContext(); in getAllManglings()
493 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) { in getAllManglings()
504 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) { in getAllManglings()
511 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) { in getAllManglings()
512 Manglings.emplace_back(getName(ND)); in getAllManglings()
550 std::string getMangledStructor(const NamedDecl *ND, unsigned StructorType) { in getMangledStructor() argument
555 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) in getMangledStructor()
557 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) in getMangledStructor()