Lines Matching defs:ND
58 static bool isExternC(const NamedDecl *ND) {
59 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND))
61 if (const VarDecl *VD = dyn_cast<VarDecl>(ND))
67 const NamedDecl *ND) {
74 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND))
81 if (Context.getLangOpts().CPlusPlus && !isExternC(ND) &&
85 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND);
312 else if (auto ND = dyn_cast<NamedDecl>(DC)) {
313 if (!shouldMangleDeclName(ND) && ND->getIdentifier())
314 Stream << ND->getIdentifier()->getName();
321 mangleName(ND, Stream);
482 const NamedDecl *ND = cast<NamedDecl>(D);
484 ASTContext &Ctx = ND->getASTContext();
496 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) {
507 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) {
514 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) {
515 Manglings.emplace_back(getName(ND));
563 std::string getMangledStructor(const NamedDecl *ND, unsigned StructorType) {
568 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND))
570 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND))