[clang-tidy][NFC] Use correct size call for reserve

This commit is contained in:
Nathan James 2020-08-04 00:31:19 +01:00
parent 49bbb8b60e
commit 3b44b6c900
No known key found for this signature in database
GPG Key ID: CC007AFCDA90AA5F
1 changed files with 1 additions and 1 deletions

View File

@ -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());