[llvm-branch-commits] [NFC][sanitizer][asan] Promote stack_id into ThreadContextBase (PR #111917)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Oct 10 16:04:35 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 744449313fff3f637e02280d58e0037eeffcca2b ef1bb84d044ecd3caf40ffbf771dca86d2de061a --extensions h,cpp -- compiler-rt/lib/asan/asan_fuchsia.cpp compiler-rt/lib/asan/asan_thread.cpp compiler-rt/lib/asan/asan_thread.h compiler-rt/lib/memprof/memprof_thread.cpp compiler-rt/lib/memprof/memprof_thread.h compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.cpp compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.h compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/asan/asan_thread.h b/compiler-rt/lib/asan/asan_thread.h
index f7c3a451aa..ad9e03d68f 100644
--- a/compiler-rt/lib/asan/asan_thread.h
+++ b/compiler-rt/lib/asan/asan_thread.h
@@ -36,7 +36,8 @@ class AsanThread;
 class AsanThreadContext final : public ThreadContextBase {
  public:
   explicit AsanThreadContext(int tid)
-      : ThreadContextBase(tid), announced(false),
+      : ThreadContextBase(tid),
+        announced(false),
         destructor_iterations(GetPthreadDestructorIterations()),
         thread(nullptr) {}
   bool announced;

``````````

</details>


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


More information about the llvm-branch-commits mailing list