reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/utils/TableGen/ClangAttrEmitter.cpp
 3437   SS << "static bool " << FnName << "(Sema &S, const ParsedAttr &Attr, ";
 3438   SS << "const Decl *D) {\n";
 3439   SS << "  if (!D || (";
 3447       SS << "!" << GenerateCustomAppertainsTo(**I, OS) << "(D)";
 3449       SS << "!isa<" << GetSubjectWithSuffix(*I) << ">(D)";
 3453       SS << " && ";
 3455   SS << ")) {\n";
 3456   SS << "    S.Diag(Attr.getLoc(), diag::";
 3457   SS << (Warn ? "warn_attribute_wrong_decl_type_str" :
 3459   SS << ")\n";
 3460   SS << "      << Attr << ";
 3461   SS << CalculateDiagnostic(*SubjectObj) << ";\n";
 3462   SS << "    return false;\n";
 3463   SS << "  }\n";
 3464   SS << "  return true;\n";
 3465   SS << "}\n\n";
 3467   OS << SS.str();