Skip to content

Commit a1ab03f

Browse files
authored
Fix syntax and formatting issues
1 parent e075173 commit a1ab03f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Basic/Attributes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ unsigned AttributeCommonInfo::calculateAttributeSpellingListIndex() const {
157157
// Both variables will be used in tablegen generated
158158
// attribute spell list index matching code.
159159
auto Syntax = static_cast<AttributeCommonInfo::Syntax>(getSyntax());
160-
// We use std::string instead of StringRef to prevent local stack
160+
// We use std::string instead of StringRef to prevent local stack
161161
// allocation of literal strings for comparison.
162-
const std::string Scope = normalizeAttrScopeName(getScopeName(), Syntax);
163-
const std::string Name = normalizeAttrName(getAttrName(), Scope, Syntax);
162+
const std::string Scope(normalizeAttrScopeName(getScopeName(), Syntax));
163+
const std::string Name(normalizeAttrName(getAttrName(), Scope, Syntax));
164164

165165
#include "clang/Sema/AttrSpellingListIndex.inc"
166166
}

0 commit comments

Comments
 (0)