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()
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()
321 mangleName(ND, Stream); in mangleBlock()
482 const NamedDecl *ND = cast<NamedDecl>(D); in getAllManglings() local
484 ASTContext &Ctx = ND->getASTContext(); in getAllManglings()
496 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) { in getAllManglings()
507 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) { in getAllManglings()
514 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) { in getAllManglings()
515 Manglings.emplace_back(getName(ND)); in getAllManglings()
563 std::string getMangledStructor(const NamedDecl *ND, unsigned StructorType) { in getMangledStructor() argument
568 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) in getMangledStructor()
570 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) in getMangledStructor()