• Home
  • Raw
  • Download

Lines Matching refs:decl

38 static bool shouldMangle(MangleContext* mangler, NamedDecl* decl) {  in shouldMangle()  argument
41 if (auto FD = dyn_cast<FunctionDecl>(decl)) { in shouldMangle()
51 return mangler->shouldMangleDeclName(decl); in shouldMangle()
66 std::string getDeclName(NamedDecl* decl) { in getDeclName() argument
67 if (auto var_decl = dyn_cast<VarDecl>(decl)) { in getDeclName()
74 if (auto asm_attr = decl->getAttr<AsmLabelAttr>()) { in getDeclName()
79 if (auto identifier = decl->getIdentifier()) { in getDeclName()
80 if (shouldMangle(mangler.get(), decl)) { in getDeclName()
83 mangler->mangleName(decl, ss); in getDeclName()
93 bool VisitDeclaratorDecl(DeclaratorDecl* decl, SourceRange range) { in VisitDeclaratorDecl() argument
96 if (decl->getParentFunctionOrMethod()) { in VisitDeclaratorDecl()
100 auto named_decl = dyn_cast<NamedDecl>(decl); in VisitDeclaratorDecl()
110 if (auto function_decl = dyn_cast<FunctionDecl>(decl)) { in VisitDeclaratorDecl()
112 } else if (auto var_decl = dyn_cast<VarDecl>(decl)) { in VisitDeclaratorDecl()
130 decl->dump(); in VisitDeclaratorDecl()
138 if (decl->hasAttr<UnavailableAttr>()) { in VisitDeclaratorDecl()
146 for (const AnnotateAttr* attr : decl->specific_attrs<AnnotateAttr>()) { in VisitDeclaratorDecl()
239 bool VisitDeclaratorDecl(DeclaratorDecl* decl) { in VisitDeclaratorDecl() argument
240 return VisitDeclaratorDecl(decl, decl->getSourceRange()); in VisitDeclaratorDecl()
243 bool TraverseLinkageSpecDecl(LinkageSpecDecl* decl) { in TraverseLinkageSpecDecl() argument
246 if (!decl->hasBraces()) { in TraverseLinkageSpecDecl()
248 for (auto child_decl : decl->decls()) { in TraverseLinkageSpecDecl()
260 return VisitDeclaratorDecl(child, decl->getSourceRange()); in TraverseLinkageSpecDecl()
263 for (auto child : decl->decls()) { in TraverseLinkageSpecDecl()