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 0e07bf91f7e3d5a53f0a51309da12e91ea8accc9 
2d02cf9d27b8bf0ea1248572bc222bbebc915929 -- 
compiler-rt/lib/sanitizer_common/sanitizer_flat_map.h 
compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_flat_map.h 
b/compiler-rt/lib/sanitizer_common/sanitizer_flat_map.h
index ee04c9b7e9..d246781fe1 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_flat_map.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_flat_map.h
@@ -109,13 +109,9 @@ class TwoLevelMap {
     return *AddressSpaceView::LoadWritable(&map2[idx % kSize2]);
   }
 
-  void Lock() SANITIZER_NO_THREAD_SAFETY_ANALYSIS {
-    mu_.Lock();
-  }
+  void Lock() SANITIZER_NO_THREAD_SAFETY_ANALYSIS { mu_.Lock(); }
 
-  void Unlock() SANITIZER_NO_THREAD_SAFETY_ANALYSIS {
-    mu_.Unlock();
-  }
+  void Unlock() SANITIZER_NO_THREAD_SAFETY_ANALYSIS { mu_.Unlock(); }
 
  private:
   constexpr uptr MmapSize() const {

``````````

</details>


https://github.com/llvm/llvm-project/pull/76280
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to