Skip to content

Commit

Permalink
Fix syntax and formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaydd authored Oct 30, 2024
1 parent e075173 commit a1ab03f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/lib/Basic/Attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ unsigned AttributeCommonInfo::calculateAttributeSpellingListIndex() const {
// Both variables will be used in tablegen generated
// attribute spell list index matching code.
auto Syntax = static_cast<AttributeCommonInfo::Syntax>(getSyntax());
// We use std::string instead of StringRef to prevent local stack
// We use std::string instead of StringRef to prevent local stack
// allocation of literal strings for comparison.
const std::string Scope = normalizeAttrScopeName(getScopeName(), Syntax);
const std::string Name = normalizeAttrName(getAttrName(), Scope, Syntax);
const std::string Scope(normalizeAttrScopeName(getScopeName(), Syntax));
const std::string Name(normalizeAttrName(getAttrName(), Scope, Syntax));

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

0 comments on commit a1ab03f

Please sign in to comment.