[clang] [Clang] Add __ugly__ spelling for the msvc attribute scope (PR #113765)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 26 09:03:30 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff d906ac52ab8ee46090a6696f4ffb34c40ee6abb7 68f3617027fa09b531b5e3eaea6a025c6783a258 --extensions cpp,h -- clang/include/clang/Basic/Attributes.h clang/lib/Basic/Attributes.cpp clang/lib/Sema/SemaCodeComplete.cpp clang/test/SemaCXX/cxx2a-ms-no-unique-address.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Basic/Attributes.h b/clang/include/clang/Basic/Attributes.h
index 9fa7e5ce55..498a4a2e41 100644
--- a/clang/include/clang/Basic/Attributes.h
+++ b/clang/include/clang/Basic/Attributes.h
@@ -23,7 +23,7 @@ int hasAttribute(AttributeCommonInfo::Syntax Syntax,
const IdentifierInfo *Scope, const IdentifierInfo *Attr,
const TargetInfo &Target, const LangOptions &LangOpts);
-inline const char* deuglifyAttrScope(StringRef Scope) {
+inline const char *deuglifyAttrScope(StringRef Scope) {
if (Scope == "_Clang")
return "clang";
if (Scope == "__gnu__")
@@ -33,7 +33,7 @@ inline const char* deuglifyAttrScope(StringRef Scope) {
return nullptr;
}
-inline const char* uglifyAttrScope(StringRef Scope) {
+inline const char *uglifyAttrScope(StringRef Scope) {
if (Scope == "clang")
return "_Clang";
if (Scope == "gnu")
``````````
</details>
https://github.com/llvm/llvm-project/pull/113765
More information about the cfe-commits
mailing list