[compiler-rt] e7376ad - [NFC][asan] clang-format the test

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 16 22:45:42 PST 2022


Author: Vitaly Buka
Date: 2022-11-16T22:45:08-08:00
New Revision: e7376adbeac0e9884556d767200cbb8abdd4f350

URL: https://github.com/llvm/llvm-project/commit/e7376adbeac0e9884556d767200cbb8abdd4f350
DIFF: https://github.com/llvm/llvm-project/commit/e7376adbeac0e9884556d767200cbb8abdd4f350.diff

LOG: [NFC][asan] clang-format the test

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/contiguous_container.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/contiguous_container.cpp b/compiler-rt/test/asan/TestCases/contiguous_container.cpp
index f54c4d337776..8c783796d1c8 100644
--- a/compiler-rt/test/asan/TestCases/contiguous_container.cpp
+++ b/compiler-rt/test/asan/TestCases/contiguous_container.cpp
@@ -2,11 +2,11 @@
 //
 // Test __sanitizer_annotate_contiguous_container.
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
 #include <assert.h>
 #include <sanitizer/asan_interface.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 static constexpr size_t kGranularity = 8;
 
@@ -87,11 +87,9 @@ void TestContainer(size_t capacity, size_t off_begin, size_t off_end,
   delete[] buffer;
 }
 
-__attribute__((noinline))
-void Throw() { throw 1; }
+__attribute__((noinline)) void Throw() { throw 1; }
 
-__attribute__((noinline))
-void ThrowAndCatch() {
+__attribute__((noinline)) void ThrowAndCatch() {
   try {
     Throw();
   } catch (...) {


        


More information about the llvm-commits mailing list