[compiler-rt] b78d4c1 - [NFC][sanitizer] Clang-format sanitizer_common_nolibc.cpp

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 14 18:32:54 PDT 2024


Author: Vitaly Buka
Date: 2024-09-14T18:32:40-07:00
New Revision: b78d4c1fd9c7106a8c5b09e3553d14b513ecb075

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

LOG: [NFC][sanitizer] Clang-format sanitizer_common_nolibc.cpp

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_common_nolibc.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_nolibc.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_common_nolibc.cpp
index 67e77a8777818d..7d88575160c6c6 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_nolibc.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_nolibc.cpp
@@ -20,13 +20,13 @@ namespace __sanitizer {
 // The Windows implementations of these functions use the win32 API directly,
 // bypassing libc.
 #if !SANITIZER_WINDOWS
-#if SANITIZER_LINUX
+#  if SANITIZER_LINUX
 void LogMessageOnPrintf(const char *str) {}
-#endif
+#  endif
 void WriteToSyslog(const char *buffer) {}
 void Abort() { internal__exit(1); }
 bool CreateDir(const char *pathname) { return false; }
-#endif // !SANITIZER_WINDOWS
+#endif  // !SANITIZER_WINDOWS
 
 #if !SANITIZER_WINDOWS && !SANITIZER_APPLE
 void ListOfModules::init() {}


        


More information about the llvm-commits mailing list