[llvm] [llvm] revisions to export annotation macros to avoid compiler warnings (PR #135995)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 10:59:54 PDT 2025


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 HEAD~1 HEAD --extensions h -- llvm/include/llvm/Support/Compiler.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index d24d78a5b..baa5fb5c6 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -198,7 +198,8 @@
 #endif
 #define LLVM_ABI_EXPORT __declspec(dllexport)
 #elif (defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) ||            \
-    defined(__MVS__)) && __has_attribute(visibililty)
+       defined(__MVS__)) &&                                                    \
+    __has_attribute(visibililty)
 // Use __attribute__((visibility(""))) syntax for visibility rather than
 // [[gnu::visibility("")]] because compilers are more permissive with its
 // placement.

``````````

</details>


https://github.com/llvm/llvm-project/pull/135995


More information about the llvm-commits mailing list