Lines Matching refs:Name
37 FlattenedSpelling(const std::string &Variety, const std::string &Name,
39 V(Variety), N(Name), NS(Namespace), K(KnownToGCC) {}
42 N(Spelling.getValueAsString("Name")) {
53 const std::string &name() const { return N; }
67 Ret.emplace_back("GNU", Spelling->getValueAsString("Name"), "", true);
68 Ret.emplace_back("CXX11", Spelling->getValueAsString("Name"), "gnu",
89 static std::string WritePCHRecord(StringRef type, StringRef name) {
91 .EndsWith("Decl *", "AddDeclRef(" + std::string(name) +
94 "AddTypeSourceInfo(" + std::string(name) + ", Record);\n")
95 .Case("Expr *", "AddStmt(" + std::string(name) + ");\n")
97 "AddIdentifierRef(" + std::string(name) + ", Record);\n")
98 .Case("std::string", "AddString(" + std::string(name) + ", Record);\n")
99 .Default("Record.push_back(" + std::string(name) + ");\n");
102 // Normalize attribute name by removing leading and trailing
115 // Normalize the name by removing any and all leading and trailing underscores.
118 static StringRef NormalizeNameForSpellingComparison(StringRef Name) {
119 return Name.trim("_");
173 : lowerName(Arg.getValueAsString("Name")), upperName(lowerName),
1116 " return \"" << Spellings[I].name() << "\";\n";
1146 // The actual spelling of the name and namespace (if applicable)
1149 std::string Name = Spellings[I].name();
1181 Spelling += Name;
1249 if (S.name() != Spelling.name())
1261 std::string Name = Accessor->getValueAsString("Name");
1268 OS << " bool " << Name << "() const { return SpellingListIndex == ";
1283 name());
1286 std::string Name = NormalizeNameForSpellingComparison(Spelling.name());
1287 if (Name != FirstName)
1298 // namespace (if present) and name for each attribute spelling. However,
1307 std::string Spelling = S.name();
1317 // Even if the name is not unique, this spelling index corresponds to a
1318 // particular enumerant name that we've calculated.
1366 OS << ".Case(\"" << I.name() << "\", " << LateParsed << ")\n";
1391 if (Emitted.insert(S.name()).second)
1392 OS << ".Case(\"" << S.name() << "\", " << "true" << ")\n";
1413 if (Emitted.insert(S.name()).second)
1414 OS << ".Case(\"" << S.name() << "\", " << "true" << ")\n";
1444 if (Emitted.insert(S.name()).second)
1445 OS << ".Case(\"" << S.name() << "\", " << "true" << ")\n";
1514 // can be elided. If all of the spellings share the same name, the spelling
1760 OS << "#define LAST_ATTR(NAME) ATTR(NAME)\n";
1764 OS << "#define INHERITABLE_ATTR(NAME) ATTR(NAME)\n";
1768 OS << "#define LAST_INHERITABLE_ATTR(NAME) INHERITABLE_ATTR(NAME)\n";
1772 OS << "#define INHERITABLE_PARAM_ATTR(NAME) ATTR(NAME)\n";
1776 OS << "#define LAST_INHERITABLE_PARAM_ATTR(NAME)"
1777 " INHERITABLE_PARAM_ATTR(NAME)\n";
1781 OS << "#define PRAGMA_SPELLING_ATTR(NAME)\n";
1785 OS << "#define LAST_PRAGMA_SPELLING_ATTR(NAME) PRAGMA_SPELLING_ATTR(NAME)\n";
2001 OS << " .Case(\"" << S.name() << "\", " << TestStr << ")\n";
2036 OS << " return llvm::StringSwitch<int>(Name)\n";
2039 OS << " return llvm::StringSwitch<int>(Name)\n";
2042 OS << " return llvm::StringSwitch<int>(Name)\n";
2053 OS << " return llvm::StringSwitch<int>(Name)\n";
2077 OS << " if (Name == \"" << Spellings[I].name() << "\" && "
2236 OS << "#define PARSED_ATTR(NAME) NAME\n";
2305 std::string Name;
2312 Name = R.getValueAsDef("Base")->getName();
2314 Name = R.getName();
2316 uint32_t V = StringSwitch<uint32_t>(Name)
2447 // name of that check to the caller.
2499 // Generate the test condition, as well as a unique function name for the
2505 std::string Part = (*I)->getValueAsString("Name");
2610 // name, we can also bail out early.
2617 std::string Name = Attr.getName() + "AttrSpellingMap";
2619 OS << "static unsigned " << Name << "(const AttributeList &Attr) {\n";
2625 return Name;
2694 emitSourceFileHeader("Attribute name matcher", OS);
2727 std::string RawSpelling = S.name();
2756 OS << "static AttributeList::Kind getAttrKind(StringRef Name, ";
2759 StringMatcher("Name", GNU, OS).Emit();
2761 StringMatcher("Name", Declspec, OS).Emit();
2763 StringMatcher("Name", CXX11, OS).Emit();
2766 StringMatcher("Name", Keywords, OS).Emit();
2768 StringMatcher("Name", Pragma, OS).Emit();
2790 // If the attribute has a semantically-meaningful name (which is determined
2834 const std::string &Name = DocCategory->getValueAsString("Name");
2835 OS << Name << "\n" << std::string(Name.length(), '=') << "\n";
2867 Heading = Spellings.begin()->name();
2872 std::string Spelling = NormalizeNameForSpellingComparison(I->name());
2904 std::string Name;
2906 Name = I.nameSpace() + "::";
2907 Name += I.name();
2909 // If this name is the same as the heading, do not add it.
2910 if (Name != Heading)
2911 Names.push_back(Name);
2992 std::string Cat = Category->getValueAsString("Name");