• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/utils/TableGen/

Lines Matching refs:Spelling

57   explicit FlattenedSpelling(const Record &Spelling) :
58 V(Spelling.getValueAsString("Variety")),
59 N(Spelling.getValueAsString("Name")) {
64 NS = Spelling.getValueAsString("Namespace");
66 K = Spelling.getValueAsBitOrUnset("KnownToGCC", Unset);
82 for (const auto &Spelling : Spellings) {
83 StringRef Variety = Spelling->getValueAsString("Variety");
84 StringRef Name = Spelling->getValueAsString("Name");
92 if (Spelling->getValueAsBit("AllowInC"))
95 Ret.push_back(FlattenedSpelling(*Spelling));
1391 llvm::SmallString<64> Spelling;
1403 Spelling += Namespace;
1404 Spelling += "::";
1420 Spelling += Namespace;
1421 Spelling += " ";
1427 Spelling += Name;
1431 " OS << \"" << Prefix << Spelling;
1442 if (Spelling == "availability") {
1446 } else if (Spelling == "deprecated" || Spelling == "gnu::deprecated") {
1535 const FlattenedSpelling &Spelling) {
1536 assert(!SpellingList.empty() && "Spelling list is empty!");
1540 if (S.variety() != Spelling.variety())
1542 if (S.nameSpace() != Spelling.nameSpace())
1544 if (S.name() != Spelling.name())
1582 for (const auto &Spelling :
1584 std::string Name = NormalizeNameForSpellingComparison(Spelling.name());
1599 std::string Ret(" enum Spelling {\n");
1612 const std::string &Spelling = S.name();
1620 EnumName += NormalizeNameForSpellingComparison(Spelling);
1892 OS << "#define ATTR_MATCH_SUB_RULE(Value, Spelling, IsAbstract, Parent, "
1894 << "ATTR_MATCH_RULE(Value, Spelling, IsAbstract)\n";
2297 // This maps spelling index values to semantic Spelling enumerants.
2354 << "Attr::Spelling S = "
2355 "static_cast<Spelling>(SpellingNotCalculated)";
2461 OS << " Spelling getSemanticSpelling() const {\n";
2977 for (const auto &Spelling : Spellings) {
2978 if (Spelling->getValueAsString("Variety") == "CXX11") {
2979 Version = static_cast<int>(Spelling->getValueAsInt("Version"));
2981 PrintError(Spelling->getLoc(), "C++ standard attributes must "
3062 auto fn = [&OS](const char *Spelling, const char *Variety,
3074 GenerateHasAttrSpellingStringSwitch(I->second, OS, Spelling, I->first);
3757 std::string Spelling;
3761 Spelling += S.nameSpace();
3762 Spelling += "::";
3765 Spelling += S.nameSpace();
3766 Spelling += "::";
3781 Spelling += NormalizeGNUAttrSpelling(RawSpelling);
3783 Spelling += RawSpelling;
3787 Spelling, "return AttributeCommonInfo::AT_" + AttrName + ";"));
3790 Spelling, "return AttributeCommonInfo::IgnoredAttribute;"));
3828 // by whether there is a Spelling enumeration for it), then write out the
3916 void add(const Record &Attr, FlattenedSpelling Spelling) {
3917 SpellingKind Kind = StringSwitch<SpellingKind>(Spelling.variety())
3926 if (!Spelling.nameSpace().empty()) {
3930 Name = Spelling.nameSpace() + "::";
3933 Name = Spelling.nameSpace() + " ";
3939 Name += Spelling.name();
3995 std::string Spelling = NormalizeNameForSpellingComparison(I->name());
3996 Uniques.insert(Spelling);
4034 for (StringRef Spelling : Doc.SupportedSpellings[K]) {
4037 OS << "``" << Spelling << "``";