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 origin/main HEAD --extensions cpp,c,h -- 
compiler-rt/lib/asan/asan_alloc_token.cpp 
compiler-rt/test/asan/TestCases/Linux/alloc-token-runtime.cpp 
compiler-rt/test/asan/TestCases/Linux/alloc-token.cpp 
clang/lib/Driver/SanitizerArgs.cpp clang/test/Driver/fsanitize-alloc-token.c 
compiler-rt/lib/asan/asan_allocator.cpp compiler-rt/lib/asan/asan_allocator.h 
compiler-rt/lib/asan/asan_descriptions.cpp 
compiler-rt/lib/asan/asan_descriptions.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/clang/lib/Driver/SanitizerArgs.cpp 
b/clang/lib/Driver/SanitizerArgs.cpp
index 70c60bfeb..69129ceb7 100644
--- a/clang/lib/Driver/SanitizerArgs.cpp
+++ b/clang/lib/Driver/SanitizerArgs.cpp
@@ -778,7 +778,8 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
                          SanitizerKind::Type),
       std::make_pair(SanitizerKind::AllocToken,
                      SanitizerKind::HWAddress | SanitizerKind::KernelAddress |
-                         SanitizerKind::KernelHWAddress | 
SanitizerKind::Memory)};
+                         SanitizerKind::KernelHWAddress |
+                         SanitizerKind::Memory)};
 
   // Enable toolchain specific default sanitizers if not explicitly disabled.
   SanitizerMask Default = TC.getDefaultSanitizers() & ~AllRemove;
diff --git a/compiler-rt/lib/asan/asan_allocator.cpp 
b/compiler-rt/lib/asan/asan_allocator.cpp
index ec76d2a28..79e8f42d5 100644
--- a/compiler-rt/lib/asan/asan_allocator.cpp
+++ b/compiler-rt/lib/asan/asan_allocator.cpp
@@ -547,8 +547,8 @@ struct Allocator {
   // may_return_null tells AllocateImpl() whether OOM should produce a nullptr
   // (true) or a fatal Report*+Die() (false).
   void* AllocateImpl(uptr size, uptr alignment, BufferedStackTrace* stack,
-                     AllocType alloc_type, bool can_fill,
-                     bool may_return_null, const uptr* alloc_token = nullptr) {
+                     AllocType alloc_type, bool can_fill, bool may_return_null,
+                     const uptr* alloc_token = nullptr) {
     if (UNLIKELY(!AsanInited()))
       AsanInitFromRtl();
     if (UNLIKELY(IsRssLimitExceeded())) {
@@ -842,8 +842,8 @@ struct Allocator {
     return new_ptr;
   }
 
-  void* Calloc(uptr nmemb, uptr size, BufferedStackTrace* stack,
-               uptr align = 8, const uptr* alloc_token = nullptr) {
+  void* Calloc(uptr nmemb, uptr size, BufferedStackTrace* stack, uptr align = 
8,
+               const uptr* alloc_token = nullptr) {
     if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
       if (AllocatorMayReturnNull())
         return nullptr;

``````````

</details>


https://github.com/llvm/llvm-project/pull/237683
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to