forked from OSchip/llvm-project
[clang-tidy][NFC] Use correct size call for reserve
This commit is contained in:
parent
49bbb8b60e
commit
3b44b6c900
|
@ -124,7 +124,7 @@ static StringRef const StyleNames[] = {
|
|||
static std::vector<llvm::Optional<IdentifierNamingCheck::NamingStyle>>
|
||||
getNamingStyles(const ClangTidyCheck::OptionsView &Options) {
|
||||
std::vector<llvm::Optional<IdentifierNamingCheck::NamingStyle>> Styles;
|
||||
Styles.reserve(StyleNames->size());
|
||||
Styles.reserve(array_lengthof(StyleNames));
|
||||
for (auto const &StyleName : StyleNames) {
|
||||
auto CaseOptional = Options.getOptional<IdentifierNamingCheck::CaseType>(
|
||||
(StyleName + "Case").str());
|
||||
|
|
Loading…
Reference in New Issue