Lines Matching defs:AttrName
72 static StringRef NormalizeAttrName(StringRef AttrName) {
73 if (AttrName.startswith("__"))
74 AttrName = AttrName.substr(2, AttrName.size());
76 if (AttrName.endswith("__"))
77 AttrName = AttrName.substr(0, AttrName.size() - 2);
79 return AttrName;
96 StringRef attrName;
101 attrName(Attr) {
111 StringRef getAttrName() const { return attrName; }
1049 StringRef AttrName = *I;
1051 AttrName = NormalizeAttrName(AttrName);
1053 if (ProcessedAttrs.find(AttrName) != ProcessedAttrs.end())
1056 ProcessedAttrs.insert(AttrName);
1058 OS << "PARSED_ATTR(" << AttrName << ")\n";
1081 StringRef AttrName = *I, Spelling = *I;
1083 AttrName = NormalizeAttrName(AttrName);
1086 OS << ".Case(\"" << Spelling << "\", " << "AT_" << AttrName << ")\n";