compiler-rt: Rename .cc file in lib/asan/tests to .cpp
authorNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 13:48:31 +0000 (13:48 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 13:48:31 +0000 (13:48 +0000)
Like r367463, but for asan/tests

llvm-svn: 367559

16 files changed:
compiler-rt/lib/asan/tests/CMakeLists.txt
compiler-rt/lib/asan/tests/asan_benchmarks_test.cpp [moved from compiler-rt/lib/asan/tests/asan_benchmarks_test.cc with 97% similarity]
compiler-rt/lib/asan/tests/asan_exceptions_test.cpp [moved from compiler-rt/lib/asan/tests/asan_exceptions_test.cc with 100% similarity]
compiler-rt/lib/asan/tests/asan_fake_stack_test.cpp [moved from compiler-rt/lib/asan/tests/asan_fake_stack_test.cc with 98% similarity]
compiler-rt/lib/asan/tests/asan_globals_test.cpp [moved from compiler-rt/lib/asan/tests/asan_globals_test.cc with 94% similarity]
compiler-rt/lib/asan/tests/asan_interface_test.cpp [moved from compiler-rt/lib/asan/tests/asan_interface_test.cc with 99% similarity]
compiler-rt/lib/asan/tests/asan_internal_interface_test.cpp [moved from compiler-rt/lib/asan/tests/asan_internal_interface_test.cc with 95% similarity]
compiler-rt/lib/asan/tests/asan_mac_test.cpp [moved from compiler-rt/lib/asan/tests/asan_mac_test.cc with 99% similarity]
compiler-rt/lib/asan/tests/asan_mem_test.cpp [moved from compiler-rt/lib/asan/tests/asan_mem_test.cc with 99% similarity]
compiler-rt/lib/asan/tests/asan_noinst_test.cpp [moved from compiler-rt/lib/asan/tests/asan_noinst_test.cc with 99% similarity]
compiler-rt/lib/asan/tests/asan_oob_test.cpp [moved from compiler-rt/lib/asan/tests/asan_oob_test.cc with 98% similarity]
compiler-rt/lib/asan/tests/asan_racy_double_free_test.cpp [moved from compiler-rt/lib/asan/tests/asan_racy_double_free_test.cc with 100% similarity]
compiler-rt/lib/asan/tests/asan_str_test.cpp [moved from compiler-rt/lib/asan/tests/asan_str_test.cc with 99% similarity]
compiler-rt/lib/asan/tests/asan_test.cpp [moved from compiler-rt/lib/asan/tests/asan_test.cc with 99% similarity]
compiler-rt/lib/asan/tests/asan_test_main.cpp [moved from compiler-rt/lib/asan/tests/asan_test_main.cc with 97% similarity]
compiler-rt/lib/sanitizer_common/scripts/check_lint.sh

index b8f87c5..6c07d1a 100644 (file)
@@ -32,7 +32,8 @@ set(ASAN_UNITTEST_COMMON_CFLAGS
   -O2
   -Wno-format
   -Werror=sign-compare
-  -Wno-non-virtual-dtor)
+  -Wno-non-virtual-dtor
+  )
 append_list_if(COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG -Wno-variadic-macros ASAN_UNITTEST_COMMON_CFLAGS)
 
 # This will ensure the target linker is used
@@ -56,7 +57,8 @@ list(APPEND ASAN_UNITTEST_COMMON_CFLAGS
   ${COMPILER_RT_ASAN_SHADOW_SCALE_FLAG}
   -DASAN_HAS_BLACKLIST=1
   -DASAN_HAS_EXCEPTIONS=1
-  -DASAN_UAR=0)
+  -DASAN_UAR=0
+  )
 
 if(APPLE)
   list(APPEND ASAN_UNITTEST_COMMON_CFLAGS ${DARWIN_osx_CFLAGS})
@@ -132,27 +134,33 @@ set_target_properties(AsanBenchmarks PROPERTIES FOLDER "Compiler-RT Tests")
 
 set(ASAN_NOINST_TEST_SOURCES
   ${COMPILER_RT_GTEST_SOURCE}
-  asan_fake_stack_test.cc
-  asan_noinst_test.cc
-  asan_test_main.cc)
+  asan_fake_stack_test.cpp
+  asan_noinst_test.cpp
+  asan_test_main.cpp
+  )
 
 set(ASAN_INST_TEST_SOURCES
   ${COMPILER_RT_GTEST_SOURCE}
-  asan_globals_test.cc
-  asan_interface_test.cc
-  asan_internal_interface_test.cc
-  asan_test.cc
-  asan_oob_test.cc
-  asan_mem_test.cc
-  asan_str_test.cc
-  asan_test_main.cc)
+  asan_globals_test.cpp
+  asan_interface_test.cpp
+  asan_internal_interface_test.cpp
+  asan_test.cpp
+  asan_oob_test.cpp
+  asan_mem_test.cpp
+  asan_str_test.cpp
+  asan_test_main.cpp
+  )
 if(APPLE)
-  list(APPEND ASAN_INST_TEST_SOURCES asan_mac_test.cc asan_mac_test_helpers.mm)
+  list(APPEND ASAN_INST_TEST_SOURCES
+    asan_mac_test.cpp
+    asan_mac_test_helpers.mm
+    )
 endif()
 
 set(ASAN_BENCHMARKS_SOURCES
   ${COMPILER_RT_GTEST_SOURCE}
-  asan_benchmarks_test.cc)
+  asan_benchmarks_test.cpp
+  )
 
 function(add_asan_tests arch test_runtime)
   cmake_parse_arguments(TEST "" "KIND" "CFLAGS" ${ARGN})
@@ -1,4 +1,4 @@
-//===-- asan_benchmarks_test.cc ----------------------===//
+//===-- asan_benchmarks_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 @@
-//===-- asan_fake_stack_test.cc -------------------------------------------===//
+//===-- asan_fake_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 @@
-//===-- asan_globals_test.cc ----------------------------------------------===//
+//===-- asan_globals_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 @@
-//===-- asan_interface_test.cc --------------------------------------------===//
+//===-- asan_interface_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 @@
-//===-- asan_internal_interface_test.cc -----------------------------------===//
+//===-- asan_internal_interface_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.
similarity index 99%
rename from compiler-rt/lib/asan/tests/asan_mac_test.cc
rename to compiler-rt/lib/asan/tests/asan_mac_test.cpp
index 14e1052..bd36089 100644 (file)
@@ -1,4 +1,4 @@
-//===-- asan_test_mac.cc --------------------------------------------------===//
+//===-- asan_test_mac.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/asan/tests/asan_mem_test.cc
rename to compiler-rt/lib/asan/tests/asan_mem_test.cpp
index 1339c12..5007d55 100644 (file)
@@ -1,4 +1,4 @@
-//===-- asan_mem_test.cc --------------------------------------------------===//
+//===-- asan_mem_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 @@
-//===-- asan_noinst_test.cc -----------------------------------------------===//
+//===-- asan_noinst_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.
similarity index 98%
rename from compiler-rt/lib/asan/tests/asan_oob_test.cc
rename to compiler-rt/lib/asan/tests/asan_oob_test.cpp
index f023ca2..1f06409 100644 (file)
@@ -1,4 +1,4 @@
-//===-- asan_oob_test.cc --------------------------------------------------===//
+//===-- asan_oob_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.
similarity index 99%
rename from compiler-rt/lib/asan/tests/asan_str_test.cc
rename to compiler-rt/lib/asan/tests/asan_str_test.cpp
index 8ed4514..cc5bd2b 100644 (file)
@@ -1,4 +1,4 @@
-//=-- asan_str_test.cc ----------------------------------------------------===//
+//=-- asan_str_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.
similarity index 99%
rename from compiler-rt/lib/asan/tests/asan_test.cc
rename to compiler-rt/lib/asan/tests/asan_test.cpp
index 2795b71..1318727 100644 (file)
@@ -1,4 +1,4 @@
-//===-- asan_test.cc ------------------------------------------------------===//
+//===-- asan_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.
similarity index 97%
rename from compiler-rt/lib/asan/tests/asan_test_main.cc
rename to compiler-rt/lib/asan/tests/asan_test_main.cpp
index 1f94ec2..245d07f 100644 (file)
@@ -1,4 +1,4 @@
-//===-- asan_test_main.cc -------------------------------------------------===//
+//===-- asan_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.
index ffce7fd..db3758e 100755 (executable)
@@ -83,7 +83,7 @@ run_lint ${ASAN_RTL_LINT_FILTER} ${INTERCEPTION}/*.cpp \
 ASAN_RTL=${COMPILER_RT}/lib/asan
 run_lint ${ASAN_RTL_LINT_FILTER} ${ASAN_RTL}/*.cpp \
                                  ${ASAN_RTL}/*.h &
-run_lint ${ASAN_TEST_LINT_FILTER} ${ASAN_RTL}/tests/*.cc \
+run_lint ${ASAN_TEST_LINT_FILTER} ${ASAN_RTL}/tests/*.cpp \
                                   ${ASAN_RTL}/tests/*.h &
 run_lint ${ASAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/asan/*/*.cc &