[compiler-rt] [sanitizers] Do not define __has_feature in sanitizer/common_interface_defs.h (PR #66628)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 5 15:20:17 PST 2023


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 1d95a071d6fc43fb413a0d3f5a9d1e52a18abab0 470f467d5c357b51ff2961e84575a2713f5c5a1c -- compiler-rt/include/sanitizer/asan_interface.h compiler-rt/include/sanitizer/common_interface_defs.h compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h b/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
index 3809669dd..62a78e528 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
@@ -17,7 +17,7 @@
 
 // GCC does not understand __has_feature.
 #if !defined(__has_feature)
-#define __has_feature(x) 0
+#  define __has_feature(x) 0
 #endif
 
 #ifndef SANITIZER_DEBUG

``````````

</details>


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


More information about the llvm-commits mailing list