Go to the documentation of this file.
17 tagNameMap, [attr](
const TagNameItem item) {
return item.
attr == attr; });
18 if (tagNameIt == tagNameMap.
end())
21 return hasTagPrefix ? tagName : tagName.
drop_front(4);
31 if (tagNameIt == tagNameMap.
end())
33 return tagNameIt->attr;
LLVM_NODISCARD bool startswith(StringRef Prefix) const
Check if this string starts with the given Prefix.
This class represents lattice values for constants.
Optional< unsigned > attrTypeFromString(StringRef tag, TagNameMap tagNameMap)
StringRef - Represent a constant reference to a string, i.e.
auto find_if(R &&Range, UnaryPredicate P)
Provide wrappers to std::find_if which take ranges instead of having to pass begin/end explicitly.
LLVM_NODISCARD StringRef drop_front(size_t N=1) const
Return a StringRef equal to 'this' but with the first N elements dropped.
StringRef attrTypeAsString(unsigned attr, TagNameMap tagNameMap, bool hasTagPrefix=true)