- reduce default buffer size to 64, which will still be large enough to
hold any property names found in the wild.
- get rid of the /*static*/ comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183697
91177308-0d34-0410-b5e6-
96231b3b80d8
///
/// This is "set" + \p Name where the initial character of \p Name
/// has been capitalized.
- static SmallString<100> constructSetterName(StringRef Name);
+ static SmallString<64> constructSetterName(StringRef Name);
/// \brief Return the default setter selector for the given identifier.
///
return *static_cast<SelectorTableImpl*>(P);
}
-/*static*/ SmallString<100>
+SmallString<64>
SelectorTable::constructSetterName(StringRef Name) {
- SmallString<100> SelectorName("set");
- SelectorName += Name;
- SelectorName[3] = toUppercase(SelectorName[3]);
- return SelectorName;
+ SmallString<64> SetterName("set");
+ SetterName += Name;
+ SetterName[3] = toUppercase(SetterName[3]);
+ return SetterName;
}
-/*static*/ Selector
+Selector
SelectorTable::constructSetterSelector(IdentifierTable &Idents,
SelectorTable &SelTable,
const IdentifierInfo *Name) {