From a1ab03f99de460d975cfbe409144f36a173a5cdf Mon Sep 17 00:00:00 2001 From: Chinmay Deshpande Date: Wed, 30 Oct 2024 12:12:04 -0700 Subject: [PATCH] Fix syntax and formatting issues --- clang/lib/Basic/Attributes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/lib/Basic/Attributes.cpp b/clang/lib/Basic/Attributes.cpp index 0083a5ae0a55fb..bb4faa675ea9f2 100644 --- a/clang/lib/Basic/Attributes.cpp +++ b/clang/lib/Basic/Attributes.cpp @@ -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(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" }