compiler-rt: Rename .cc file in lib/tsan/tests/{rtl,unit} to .cpp
authorNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:26:37 +0000 (14:26 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:26:37 +0000 (14:26 +0000)
Like r367463, but for tsan/tests/{rtl,unit}.

llvm-svn: 367566

22 files changed:
compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
compiler-rt/lib/tsan/rtl/tsan_clock.cpp
compiler-rt/lib/tsan/tests/rtl/CMakeLists.txt
compiler-rt/lib/tsan/tests/rtl/tsan_bench.cpp [moved from compiler-rt/lib/tsan/tests/rtl/tsan_bench.cc with 97% similarity]
compiler-rt/lib/tsan/tests/rtl/tsan_mop.cpp [moved from compiler-rt/lib/tsan/tests/rtl/tsan_mop.cc with 98% similarity]
compiler-rt/lib/tsan/tests/rtl/tsan_mutex.cpp [moved from compiler-rt/lib/tsan/tests/rtl/tsan_mutex.cc with 98% similarity]
compiler-rt/lib/tsan/tests/rtl/tsan_posix.cpp [moved from compiler-rt/lib/tsan/tests/rtl/tsan_posix.cc with 98% similarity]
compiler-rt/lib/tsan/tests/rtl/tsan_string.cpp [moved from compiler-rt/lib/tsan/tests/rtl/tsan_string.cc with 97% similarity]
compiler-rt/lib/tsan/tests/rtl/tsan_test.cpp [moved from compiler-rt/lib/tsan/tests/rtl/tsan_test.cc with 96% similarity]
compiler-rt/lib/tsan/tests/rtl/tsan_test_util_posix.cpp [moved from compiler-rt/lib/tsan/tests/rtl/tsan_test_util_posix.cc with 99% similarity]
compiler-rt/lib/tsan/tests/rtl/tsan_thread.cpp [moved from compiler-rt/lib/tsan/tests/rtl/tsan_thread.cc with 95% similarity]
compiler-rt/lib/tsan/tests/unit/CMakeLists.txt
compiler-rt/lib/tsan/tests/unit/tsan_clock_test.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_clock_test.cc with 99% similarity]
compiler-rt/lib/tsan/tests/unit/tsan_dense_alloc_test.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_dense_alloc_test.cc with 95% similarity]
compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc with 98% similarity]
compiler-rt/lib/tsan/tests/unit/tsan_mman_test.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_mman_test.cc with 98% similarity]
compiler-rt/lib/tsan/tests/unit/tsan_mutex_test.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_mutex_test.cc with 97% similarity]
compiler-rt/lib/tsan/tests/unit/tsan_mutexset_test.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_mutexset_test.cc with 98% similarity]
compiler-rt/lib/tsan/tests/unit/tsan_shadow_test.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_shadow_test.cc with 97% similarity]
compiler-rt/lib/tsan/tests/unit/tsan_stack_test.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_stack_test.cc with 97% similarity]
compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cc with 98% similarity]
compiler-rt/lib/tsan/tests/unit/tsan_unit_test_main.cpp [moved from compiler-rt/lib/tsan/tests/unit/tsan_unit_test_main.cc with 91% similarity]

index bf8e0fd..00d811a 100755 (executable)
@@ -91,9 +91,9 @@ run_lint ${ASAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/asan/*/*.cc &
 TSAN_RTL=${COMPILER_RT}/lib/tsan
 run_lint ${TSAN_RTL_LINT_FILTER} ${TSAN_RTL}/rtl/*.cpp \
                                  ${TSAN_RTL}/rtl/*.h &
-run_lint ${TSAN_TEST_LINT_FILTER} ${TSAN_RTL}/tests/rtl/*.cc \
+run_lint ${TSAN_TEST_LINT_FILTER} ${TSAN_RTL}/tests/rtl/*.cpp \
                                   ${TSAN_RTL}/tests/rtl/*.h \
-                                  ${TSAN_RTL}/tests/unit/*.cc &
+                                  ${TSAN_RTL}/tests/unit/*.cpp &
 run_lint ${TSAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/tsan/*.cc &
 
 # MSan
index 0db3737..4b7aa06 100644 (file)
@@ -40,7 +40,7 @@
 //     release(dst);
 //   }
 //
-// Conformance to this model is extensively verified in tsan_clock_test.cc.
+// Conformance to this model is extensively verified in tsan_clock_test.cpp.
 // However, the implementation is significantly more complex. The complexity
 // allows to implement important classes of use cases in O(1) instead of O(N).
 //
index a34f08e..92cec3e 100644 (file)
@@ -1,18 +1,22 @@
 set(TSAN_RTL_TEST_SOURCES
-  tsan_bench.cc
-  tsan_mop.cc
-  tsan_mutex.cc
-  tsan_posix.cc
-  tsan_string.cc
-  tsan_test.cc
-  tsan_thread.cc)
+  tsan_bench.cpp
+  tsan_mop.cpp
+  tsan_mutex.cpp
+  tsan_posix.cpp
+  tsan_string.cpp
+  tsan_test.cpp
+  tsan_thread.cpp
+  )
 
 if(UNIX)
-  list(APPEND TSAN_RTL_TEST_SOURCES tsan_test_util_posix.cc)
+  list(APPEND TSAN_RTL_TEST_SOURCES
+    tsan_test_util_posix.cpp
+    )
 endif()
 
 set(TSAN_RTL_TEST_HEADERS
-  tsan_test_util.h)
+  tsan_test_util.h
+  )
 
 add_tsan_unittest(TsanRtlTest
   SOURCES ${TSAN_RTL_TEST_SOURCES}
similarity index 97%
rename from compiler-rt/lib/tsan/tests/rtl/tsan_bench.cc
rename to compiler-rt/lib/tsan/tests/rtl/tsan_bench.cpp
index 0135101..36ca9b5 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tsan_bench.cc -----------------------------------------------------===//
+//===-- tsan_bench.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/tsan/tests/rtl/tsan_mop.cc
rename to compiler-rt/lib/tsan/tests/rtl/tsan_mop.cpp
index a5b0bdd..1825c96 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tsan_mop.cc -------------------------------------------------------===//
+//===-- tsan_mop.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/tsan/tests/rtl/tsan_mutex.cc
rename to compiler-rt/lib/tsan/tests/rtl/tsan_mutex.cpp
index af12e20..dae9c94 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tsan_mutex.cc -----------------------------------------------------===//
+//===-- tsan_mutex.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/tsan/tests/rtl/tsan_posix.cc
rename to compiler-rt/lib/tsan/tests/rtl/tsan_posix.cpp
index d194045..0eb8dc1 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tsan_posix.cc -----------------------------------------------------===//
+//===-- tsan_posix.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 @@
-//===-- tsan_string.cc ----------------------------------------------------===//
+//===-- tsan_string.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 96%
rename from compiler-rt/lib/tsan/tests/rtl/tsan_test.cc
rename to compiler-rt/lib/tsan/tests/rtl/tsan_test.cpp
index 51a3b27..84e6bbc 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tsan_test.cc ------------------------------------------------------===//
+//===-- tsan_test.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 @@
-//===-- tsan_test_util_posix.cc -------------------------------------------===//
+//===-- tsan_test_util_posix.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 @@
-//===-- tsan_thread.cc ----------------------------------------------------===//
+//===-- tsan_thread.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 c08508d..79e334a 100644 (file)
@@ -1,12 +1,13 @@
 set(TSAN_UNIT_TEST_SOURCES
-  tsan_clock_test.cc
-  tsan_flags_test.cc
-  tsan_mman_test.cc
-  tsan_mutex_test.cc
-  tsan_shadow_test.cc
-  tsan_stack_test.cc
-  tsan_sync_test.cc
-  tsan_unit_test_main.cc)
+  tsan_clock_test.cpp
+  tsan_flags_test.cpp
+  tsan_mman_test.cpp
+  tsan_mutex_test.cpp
+  tsan_shadow_test.cpp
+  tsan_stack_test.cpp
+  tsan_sync_test.cpp
+  tsan_unit_test_main.cpp
+  )
 
 add_tsan_unittest(TsanUnitTest
   SOURCES ${TSAN_UNIT_TEST_SOURCES})
@@ -1,4 +1,4 @@
-//===-- tsan_clock_test.cc ------------------------------------------------===//
+//===-- tsan_clock_test.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 @@
-//===-- tsan_dense_alloc_test.cc ------------------------------------------===//
+//===-- tsan_dense_alloc_test.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 @@
-//===-- tsan_flags_test.cc ------------------------------------------------===//
+//===-- tsan_flags_test.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 @@
-//===-- tsan_mman_test.cc -------------------------------------------------===//
+//===-- tsan_mman_test.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 @@
-//===-- tsan_mutex_test.cc ------------------------------------------------===//
+//===-- tsan_mutex_test.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 @@
-//===-- tsan_mutexset_test.cc ---------------------------------------------===//
+//===-- tsan_mutexset_test.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 @@
-//===-- tsan_shadow_test.cc -----------------------------------------------===//
+//===-- tsan_shadow_test.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 @@
-//===-- tsan_stack_test.cc ------------------------------------------------===//
+//===-- tsan_stack_test.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 @@
-//===-- tsan_sync_test.cc -------------------------------------------------===//
+//===-- tsan_sync_test.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 @@
-//===-- tsan_unit_test_main.cc --------------------------------------------===//
+//===-- tsan_unit_test_main.cpp -------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.