compiler-rt: Rename .cc file in lib/msan to .cpp
authorNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:08:18 +0000 (14:08 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:08:18 +0000 (14:08 +0000)
Like r367463, but for msan.

llvm-svn: 367562

13 files changed:
compiler-rt/lib/msan/CMakeLists.txt
compiler-rt/lib/msan/msan.cpp [moved from compiler-rt/lib/msan/msan.cc with 99% similarity]
compiler-rt/lib/msan/msan_allocator.cpp [moved from compiler-rt/lib/msan/msan_allocator.cc with 99% similarity]
compiler-rt/lib/msan/msan_chained_origin_depot.cpp [moved from compiler-rt/lib/msan/msan_chained_origin_depot.cc with 98% similarity]
compiler-rt/lib/msan/msan_interceptors.cpp [moved from compiler-rt/lib/msan/msan_interceptors.cc with 99% similarity]
compiler-rt/lib/msan/msan_linux.cpp [moved from compiler-rt/lib/msan/msan_linux.cc with 99% similarity]
compiler-rt/lib/msan/msan_new_delete.cpp [moved from compiler-rt/lib/msan/msan_new_delete.cc with 98% similarity]
compiler-rt/lib/msan/msan_poisoning.cpp [moved from compiler-rt/lib/msan/msan_poisoning.cc with 98% similarity]
compiler-rt/lib/msan/msan_report.cpp [moved from compiler-rt/lib/msan/msan_report.cc with 99% similarity]
compiler-rt/lib/msan/msan_thread.cpp [moved from compiler-rt/lib/msan/msan_thread.cc with 100% similarity]
compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
compiler-rt/test/msan/chained_origin_memcpy.cc
compiler-rt/test/msan/msan_copy_shadow.cc

index 15cc513..9e9bf65 100644 (file)
@@ -2,18 +2,19 @@ include_directories(..)
 
 # Runtime library sources and build flags.
 set(MSAN_RTL_SOURCES
-  msan.cc
-  msan_allocator.cc
-  msan_chained_origin_depot.cc
-  msan_interceptors.cc
-  msan_linux.cc
-  msan_report.cc
-  msan_thread.cc
-  msan_poisoning.cc
+  msan.cpp
+  msan_allocator.cpp
+  msan_chained_origin_depot.cpp
+  msan_interceptors.cpp
+  msan_linux.cpp
+  msan_report.cpp
+  msan_thread.cpp
+  msan_poisoning.cpp
   )
 
 set(MSAN_RTL_CXX_SOURCES
-  msan_new_delete.cc)
+  msan_new_delete.cpp
+  )
 
 set(MSAN_RTL_HEADERS
   msan.h
similarity index 99%
rename from compiler-rt/lib/msan/msan.cc
rename to compiler-rt/lib/msan/msan.cpp
index c62e5cd..1bc505e 100644 (file)
@@ -1,4 +1,4 @@
-//===-- msan.cc -----------------------------------------------------------===//
+//===-- msan.cpp ----------------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from compiler-rt/lib/msan/msan_allocator.cc
rename to compiler-rt/lib/msan/msan_allocator.cpp
index 1816840..6aa4e27 100644 (file)
@@ -1,4 +1,4 @@
-//===-- msan_allocator.cc --------------------------- ---------------------===//
+//===-- msan_allocator.cpp -------------------------- ---------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -1,4 +1,4 @@
-//===-- msan_chained_origin_depot.cc -----------------------------------===//
+//===-- msan_chained_origin_depot.cpp ----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from compiler-rt/lib/msan/msan_interceptors.cc
rename to compiler-rt/lib/msan/msan_interceptors.cpp
index b055bb7..41a5aa7 100644 (file)
@@ -1,4 +1,4 @@
-//===-- msan_interceptors.cc ----------------------------------------------===//
+//===-- msan_interceptors.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from compiler-rt/lib/msan/msan_linux.cc
rename to compiler-rt/lib/msan/msan_linux.cpp
index 0567830..26a15a4 100644 (file)
@@ -1,4 +1,4 @@
-//===-- msan_linux.cc -----------------------------------------------------===//
+//===-- msan_linux.cpp ----------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from compiler-rt/lib/msan/msan_new_delete.cc
rename to compiler-rt/lib/msan/msan_new_delete.cpp
index 750981e..04b77d6 100644 (file)
@@ -1,4 +1,4 @@
-//===-- msan_new_delete.cc ------------------------------------------------===//
+//===-- msan_new_delete.cpp -----------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from compiler-rt/lib/msan/msan_poisoning.cc
rename to compiler-rt/lib/msan/msan_poisoning.cpp
index 5ea01f5..ef3c74e 100644 (file)
@@ -1,4 +1,4 @@
-//===-- msan_poisoning.cc ---------------------------------------*- C++ -*-===//
+//===-- msan_poisoning.cpp --------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from compiler-rt/lib/msan/msan_report.cc
rename to compiler-rt/lib/msan/msan_report.cpp
index 73bce39..e10d9eb 100644 (file)
@@ -1,4 +1,4 @@
-//===-- msan_report.cc ----------------------------------------------------===//
+//===-- msan_report.cpp ---------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
index e616725..4545d09 100755 (executable)
@@ -98,7 +98,7 @@ run_lint ${TSAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/tsan/*.cc &
 
 # MSan
 MSAN_RTL=${COMPILER_RT}/lib/msan
-run_lint ${MSAN_RTL_LINT_FILTER} ${MSAN_RTL}/*.cc \
+run_lint ${MSAN_RTL_LINT_FILTER} ${MSAN_RTL}/*.cpp \
                                  ${MSAN_RTL}/*.h &
 
 # LSan
index 0c94f2b..47a0eff 100644 (file)
@@ -46,17 +46,17 @@ int main(int argc, char *argv[]) {
 }
 
 // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value
-// CHECK: {{#0 .* in main .*chained_origin_memcpy.cc:}}[[@LINE-4]]
+// CHECK: {{#0 .* in main .*chained_origin_memcpy.cpp:}}[[@LINE-4]]
 
 // CHECK: Uninitialized value was stored to memory at
-// CHECK-FULL-STACK: {{#1 .* in fn_h.*chained_origin_memcpy.cc:}}[[@LINE-15]]
-// CHECK-SHORT-STACK: {{#0 .* in __msan_memcpy.*msan_interceptors.cc:}}
+// CHECK-FULL-STACK: {{#1 .* in fn_h.*chained_origin_memcpy.cpp:}}[[@LINE-15]]
+// CHECK-SHORT-STACK: {{#0 .* in __msan_memcpy.*msan_interceptors.cpp:}}
 
 // CHECK: Uninitialized value was stored to memory at
-// CHECK-FULL-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cc:}}[[@LINE-29]]
-// CHECK-FULL-STACK: {{#1 .* in fn_f.*chained_origin_memcpy.cc:}}[[@LINE-25]]
-// CHECK-SHORT-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cc:}}[[@LINE-31]]
+// CHECK-FULL-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cpp:}}[[@LINE-29]]
+// CHECK-FULL-STACK: {{#1 .* in fn_f.*chained_origin_memcpy.cpp:}}[[@LINE-25]]
+// CHECK-SHORT-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cpp:}}[[@LINE-31]]
 
 // CHECK-Z1: Uninitialized value was created by an allocation of 'z1' in the stack frame of function 'main'
 // CHECK-Z2: Uninitialized value was created by an allocation of 'z2' in the stack frame of function 'main'
-// CHECK: {{#0 .* in main.*chained_origin_memcpy.cc:}}[[@LINE-22]]
+// CHECK: {{#0 .* in main.*chained_origin_memcpy.cpp:}}[[@LINE-22]]
index 19da738..a3ec39c 100644 (file)
@@ -26,10 +26,10 @@ int main() {
   assert(__msan_test_shadow(b + 3, 1) == -1);
   __msan_check_mem_is_initialized(b, 4);
   // CHECK: use-of-uninitialized-value
-  // CHECK:   {{in main.*msan_copy_shadow.cc:}}[[@LINE-2]]
+  // CHECK:   {{in main.*msan_copy_shadow.cpp:}}[[@LINE-2]]
   // CHECK: Uninitialized value was stored to memory at
-  // CHECK-FULL-STACK:   {{in main.*msan_copy_shadow.cc:}}[[@LINE-8]]
-  // CHECK-SHORT-STACK:   {{in __msan_copy_shadow .*msan_interceptors.cc:}}
+  // CHECK-FULL-STACK:   {{in main.*msan_copy_shadow.cpp:}}[[@LINE-8]]
+  // CHECK-SHORT-STACK:   {{in __msan_copy_shadow .*msan_interceptors.cpp:}}
   // CHECK: Uninitialized value was created by a heap allocation
-  // CHECK:   {{in main.*msan_copy_shadow.cc:}}[[@LINE-23]]
+  // CHECK:   {{in main.*msan_copy_shadow.cpp:}}[[@LINE-23]]
 }