[compiler-rt] [llvm] [compiler-rt][rtsan] Introduce RTSAN_OPTIONS and flags (PR #107174)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 08:58:50 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 18263c319092b878f25dd4025830f8e6691245d4 0d0339d186e9c9d1e939b91c524454e2fe73ee44 --extensions cpp,inc,h -- compiler-rt/lib/rtsan/rtsan_flags.cpp compiler-rt/lib/rtsan/rtsan_flags.h compiler-rt/lib/rtsan/rtsan_flags.inc compiler-rt/test/rtsan/unrecognized_flags.cpp compiler-rt/lib/rtsan/rtsan.cpp compiler-rt/lib/rtsan/rtsan_context.cpp compiler-rt/lib/rtsan/rtsan_stack.cpp compiler-rt/lib/rtsan/tests/rtsan_test_context.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/rtsan/rtsan_flags.h b/compiler-rt/lib/rtsan/rtsan_flags.h
index 1f4579c962..29025c29b6 100644
--- a/compiler-rt/lib/rtsan/rtsan_flags.h
+++ b/compiler-rt/lib/rtsan/rtsan_flags.h
@@ -14,10 +14,10 @@
namespace __rtsan {
struct Flags {
-#define RTSAN_FLAG(Type, Name, DefaultValue, Description) Type Name { DefaultValue };
+#define RTSAN_FLAG(Type, Name, DefaultValue, Description) \
+ Type Name{DefaultValue};
#include "rtsan_flags.inc"
#undef RTSAN_FLAG
-
};
extern Flags flags_data;
``````````
</details>
https://github.com/llvm/llvm-project/pull/107174
More information about the llvm-commits
mailing list