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()
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()
497 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) { in getAllManglings()
508 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) { in getAllManglings()
515 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) { in getAllManglings()
516 Manglings.emplace_back(getName(ND)); in getAllManglings()
554 std::string getMangledStructor(const NamedDecl *ND, unsigned StructorType) { in getMangledStructor() argument
559 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) in getMangledStructor()
561 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) in getMangledStructor()