[compiler-rt] [nsan] Use ALIGNED instead of alignas (NFC) (PR #98933)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 10:03:04 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 93d7d9bfd4aede19dda0ebaf8aead12c2adbd13b 2cc345d1981d4f691b62c5b635372a365248a382 --extensions cpp -- compiler-rt/lib/nsan/nsan.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/nsan/nsan.cpp b/compiler-rt/lib/nsan/nsan.cpp
index 10010495e3..4f0525a312 100644
--- a/compiler-rt/lib/nsan/nsan.cpp
+++ b/compiler-rt/lib/nsan/nsan.cpp
@@ -406,8 +406,8 @@ ALIGNED(16) thread_local uptr __nsan_shadow_args_tag = 0;
 constexpr const int kMaxNumArgs = 128;
 SANITIZER_INTERFACE_ATTRIBUTE
 ALIGNED(16)
-thread_local char __nsan_shadow_args_ptr[kMaxVectorWidth * kMaxNumArgs *
-                                         sizeof(__float128)];
+thread_local char
+    __nsan_shadow_args_ptr[kMaxVectorWidth * kMaxNumArgs * sizeof(__float128)];
 
 enum ContinuationType { // Keep in sync with instrumentation pass.
   kContinueWithShadow = 0,

``````````

</details>


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


More information about the llvm-commits mailing list