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

References

tools/clang/utils/TableGen/ClangAttrEmitter.cpp
 2001   OS << "Optional<attr::SubjectMatchRule> "
 2003   OS << "  return None;\n";
 2004   OS << "}\n\n";
 2015     OS << "Optional<attr::SubjectMatchRule> isAttributeSubjectMatchSubRuleFor_"
 2018     OS << "  if (IsUnless)\n";
 2019     OS << "    return "
 2023         OS << "    Case(\"" << Rule.getName() << "\", " << Rule.getEnumValue()
 2026     OS << "    Default(None);\n";
 2027     OS << "  return "
 2031         OS << "  Case(\"" << Rule.getName() << "\", " << Rule.getEnumValue()
 2034     OS << "  Default(None);\n";
 2035     OS << "}\n\n";
 2039   OS << "std::pair<Optional<attr::SubjectMatchRule>, "
 2042   OS << "  return "
 2055     OS << "  Case(\"" << Rule.getName() << "\", std::make_pair("
 2058   OS << "  Default(std::make_pair(None, "
 2060   OS << "}\n\n";
 2063   OS << "const char *validAttributeSubjectMatchSubRules("
 2065   OS << "  switch (Rule) {\n";
 2067     OS << "  case "
 2070     OS << "  return \"'";
 2074         OS << ", '";
 2077         OS << "unless(";
 2078       OS << Rule.getName();
 2080         OS << ')';
 2081       OS << "'";
 2083     OS << "\";\n";
 2085   OS << "  default: return nullptr;\n";
 2086   OS << "  }\n";
 2087   OS << "}\n\n";