Lines Matching defs:ND
56 static bool isExternC(const NamedDecl *ND) {
57 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND))
59 return cast<VarDecl>(ND)->isExternC();
63 const NamedDecl *ND) {
69 if (Context.getLangOpts().CPlusPlus && !isExternC(ND) &&
73 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND);
249 else if (auto ND = dyn_cast<NamedDecl>(DC)) {
250 if (!shouldMangleDeclName(ND) && ND->getIdentifier())
251 Stream << ND->getIdentifier()->getName();
258 mangleName(ND, Stream);
377 const NamedDecl *ND = cast<NamedDecl>(D);
379 ASTContext &Ctx = ND->getASTContext();
391 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) {
402 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) {
409 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) {
410 Manglings.emplace_back(getName(ND));
444 std::string getMangledStructor(const NamedDecl *ND, unsigned StructorType) {
448 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND))
450 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND))