summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt69
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/malloc_stress_transfer_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/malloc_stress_transfer_test.cc)0
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc)4
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_bvgraph_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_bvgraph_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_deadlock_detector_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_deadlock_detector_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_flags_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_flags_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_ioctl_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_ioctl_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_list_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_list_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_posix_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_posix_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_printf_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_printf_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_quarantine_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_quarantine_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_printer_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_printer_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc)6
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_symbolizer_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_symbolizer_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_test_main.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_test_main.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_type_traits_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_type_traits_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_vector_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/sanitizer_vector_test.cc)2
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/standalone_malloc_test.cpp (renamed from compiler-rt/lib/sanitizer_common/tests/standalone_malloc_test.cc)0
35 files changed, 71 insertions, 68 deletions
diff --git a/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
index fd29d178b73..fd31b6dbdf4 100644
--- a/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
+++ b/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
@@ -9,40 +9,42 @@ if(APPLE)
endif()
set(SANITIZER_UNITTESTS
- sanitizer_allocator_test.cc
- sanitizer_atomic_test.cc
- sanitizer_bitvector_test.cc
- sanitizer_bvgraph_test.cc
- sanitizer_common_test.cc
- sanitizer_deadlock_detector_test.cc
- sanitizer_flags_test.cc
- sanitizer_format_interceptor_test.cc
- sanitizer_ioctl_test.cc
- sanitizer_libc_test.cc
- sanitizer_linux_test.cc
- sanitizer_list_test.cc
- sanitizer_mutex_test.cc
- sanitizer_nolibc_test.cc
- sanitizer_posix_test.cc
- sanitizer_printf_test.cc
- sanitizer_procmaps_test.cc
- sanitizer_ring_buffer_test.cc
- sanitizer_quarantine_test.cc
- sanitizer_stackdepot_test.cc
- sanitizer_stacktrace_printer_test.cc
- sanitizer_stacktrace_test.cc
- sanitizer_stoptheworld_test.cc
- sanitizer_suppressions_test.cc
- sanitizer_symbolizer_test.cc
- sanitizer_test_main.cc
- sanitizer_thread_registry_test.cc
- sanitizer_type_traits_test.cc
- sanitizer_vector_test.cc)
+ sanitizer_allocator_test.cpp
+ sanitizer_atomic_test.cpp
+ sanitizer_bitvector_test.cpp
+ sanitizer_bvgraph_test.cpp
+ sanitizer_common_test.cpp
+ sanitizer_deadlock_detector_test.cpp
+ sanitizer_flags_test.cpp
+ sanitizer_format_interceptor_test.cpp
+ sanitizer_ioctl_test.cpp
+ sanitizer_libc_test.cpp
+ sanitizer_linux_test.cpp
+ sanitizer_list_test.cpp
+ sanitizer_mutex_test.cpp
+ sanitizer_nolibc_test.cpp
+ sanitizer_posix_test.cpp
+ sanitizer_printf_test.cpp
+ sanitizer_procmaps_test.cpp
+ sanitizer_ring_buffer_test.cpp
+ sanitizer_quarantine_test.cpp
+ sanitizer_stackdepot_test.cpp
+ sanitizer_stacktrace_printer_test.cpp
+ sanitizer_stacktrace_test.cpp
+ sanitizer_stoptheworld_test.cpp
+ sanitizer_suppressions_test.cpp
+ sanitizer_symbolizer_test.cpp
+ sanitizer_test_main.cpp
+ sanitizer_thread_registry_test.cpp
+ sanitizer_type_traits_test.cpp
+ sanitizer_vector_test.cpp
+ )
set(SANITIZER_TEST_HEADERS
sanitizer_pthread_wrappers.h
sanitizer_test_config.h
- sanitizer_test_utils.h)
+ sanitizer_test_utils.h
+ )
foreach(header ${SANITIZER_IMPL_HEADERS})
list(APPEND SANITIZER_TEST_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/../${header})
endforeach()
@@ -57,7 +59,8 @@ set(SANITIZER_TEST_CFLAGS_COMMON
-O2
-Werror=sign-compare
-Wno-non-virtual-dtor
- -Wno-gnu-zero-variadic-macro-arguments)
+ -Wno-gnu-zero-variadic-macro-arguments
+ )
set(SANITIZER_TEST_LINK_FLAGS_COMMON ${COMPILER_RT_UNITTEST_LINK_FLAGS})
@@ -156,9 +159,9 @@ macro(add_sanitizer_tests_for_arch arch)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND "${arch}" STREQUAL "x86_64")
# Test that the libc-independent part of sanitizer_common is indeed
# independent of libc, by linking this binary without libc (here) and
- # executing it (unit test in sanitizer_nolibc_test.cc).
+ # executing it (unit test in sanitizer_nolibc_test.cpp).
clang_compile(sanitizer_nolibc_test_main.${arch}.o
- sanitizer_nolibc_test_main.cc
+ sanitizer_nolibc_test_main.cpp
CFLAGS ${SANITIZER_TEST_CFLAGS_COMMON} ${TARGET_FLAGS}
DEPS ${SANITIZER_TEST_COMPILE_DEPS})
add_compiler_rt_test(SanitizerUnitTests "Sanitizer-${arch}-Test-Nolibc" ${arch}
diff --git a/compiler-rt/lib/sanitizer_common/tests/malloc_stress_transfer_test.cc b/compiler-rt/lib/sanitizer_common/tests/malloc_stress_transfer_test.cpp
index 3e03c4bddfd..3e03c4bddfd 100644
--- a/compiler-rt/lib/sanitizer_common/tests/malloc_stress_transfer_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/malloc_stress_transfer_test.cpp
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cpp
index 5d99bf4581f..1015a60b4a5 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_allocator_test.cc ---------------------------------------===//
+//===-- sanitizer_allocator_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cpp
index 59704960529..93af8be17d1 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_allocator_testlib.cc ------------------------------------===//
+//===-- sanitizer_allocator_testlib.cpp -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -11,7 +11,7 @@
//===----------------------------------------------------------------------===//
/* Usage:
clang++ -std=c++11 -fno-exceptions -g -fPIC -I. -I../include -Isanitizer \
- sanitizer_common/tests/sanitizer_allocator_testlib.cc \
+ sanitizer_common/tests/sanitizer_allocator_testlib.cpp \
$(\ls sanitizer_common/sanitizer_*.cpp | grep -v sanitizer_common_nolibc.cpp) \
sanitizer_common/sanitizer_linux_x86_64.S \
-shared -lpthread -o testmalloc.so
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cpp
index 37ba0fa3fb1..9a3078b25d7 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_atomic_test.cc ------------------------------------------===//
+//===-- sanitizer_atomic_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp
index 9f605037ade..d6e61485738 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_bitvector_test.cc ---------------------------------------===//
+//===-- sanitizer_bitvector_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_bvgraph_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_bvgraph_test.cpp
index 955b723c672..bb2f81fb997 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_bvgraph_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_bvgraph_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_bvgraph_test.cc -----------------------------------------===//
+//===-- sanitizer_bvgraph_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp
index 2350de943b3..9c2b88d82d5 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_common_test.cc ------------------------------------------===//
+//===-- sanitizer_common_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_deadlock_detector_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_deadlock_detector_test.cpp
index f68bb70dff7..b4ec339e6aa 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_deadlock_detector_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_deadlock_detector_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_deadlock_detector_test.cc -------------------------------===//
+//===-- sanitizer_deadlock_detector_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_flags_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_flags_test.cpp
index cfe90ef4585..63a7da618c9 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_flags_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_flags_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_flags_test.cc -------------------------------------------===//
+//===-- sanitizer_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cpp
index 9f70fbc52e0..4ed80721c4d 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_format_interceptor_test.cc ------------------------------===//
+//===-- sanitizer_format_interceptor_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_ioctl_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_ioctl_test.cpp
index 738046aba9b..8da09f693c2 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_ioctl_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_ioctl_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_ioctl_test.cc -------------------------------------------===//
+//===-- sanitizer_ioctl_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
index d8f4759917f..1f213cd22c7 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_libc_test.cc --------------------------------------------===//
+//===-- sanitizer_libc_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cpp
index a5ce5a2c392..1d8e7e8af26 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_linux_test.cc -------------------------------------------===//
+//===-- sanitizer_linux_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_list_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_list_test.cpp
index 7dd28ee05b7..63444237fd0 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_list_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_list_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_list_test.cc --------------------------------------------===//
+//===-- sanitizer_list_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp
index ef1c5fa46f8..2cfbaae6317 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_mutex_test.cc -------------------------------------------===//
+//===-- sanitizer_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test.cpp
index fdab29692b3..41376ee0943 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_nolibc_test.cc ------------------------------------------===//
+//===-- sanitizer_nolibc_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp
index 70028506a11..5c02bfbd30c 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_nolibc_test_main.cc -------------------------------------===//
+//===-- sanitizer_nolibc_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_posix_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_posix_test.cpp
index 6ceae7d773c..c903846e1a8 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_posix_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_posix_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_posix_test.cc -------------------------------------------===//
+//===-- sanitizer_posix_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_printf_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_printf_test.cpp
index 26c01519fd1..699a363bf8b 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_printf_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_printf_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_printf_test.cc ------------------------------------------===//
+//===-- sanitizer_printf_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
index 37ab3d96d3d..08750c06e6f 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_procmaps_test.cc ----------------------------------------===//
+//===-- sanitizer_procmaps_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_quarantine_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_quarantine_test.cpp
index 4088119a98d..ee0ac6abcc4 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_quarantine_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_quarantine_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_quarantine_test.cc --------------------------------------===//
+//===-- sanitizer_quarantine_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cpp
index e10cd3604b3..91ec2f9e229 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_vector_test.cc ------------------------------------------===//
+//===-- sanitizer_vector_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
index 24f6fcf773f..a06413c4912 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_stackdepot_test.cc --------------------------------------===//
+//===-- sanitizer_stackdepot_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_printer_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_printer_test.cpp
index b6d1bd16b8f..1ce89a30cf6 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_printer_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_printer_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_common_printer_test.cc ----------------------------------===//
+//===-- sanitizer_common_printer_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
index 771a3e4d961..afd4a0eca62 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_stacktrace_test.cc --------------------------------------===//
+//===-- sanitizer_stacktrace_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cpp
index 98e64d870e0..beb56cfaf4e 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_stoptheworld_test.cc ------------------------------------===//
+//===-- sanitizer_stoptheworld_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cpp
index 033170e7a61..e333bf08352 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_stoptheworld_testlib.cc ---------------------------------===//
+//===-- sanitizer_stoptheworld_testlib.cpp --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -10,8 +10,8 @@
//===----------------------------------------------------------------------===//
/* Usage:
clang++ -fno-exceptions -g -fPIC -I. \
- sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc \
- sanitizer_common/sanitizer_*.cc -shared -lpthread -o teststoptheworld.so
+ sanitizer_common/tests/sanitizer_stoptheworld_testlib.cpp \
+ sanitizer_common/sanitizer_*.cpp -shared -lpthread -o teststoptheworld.so
LD_PRELOAD=`pwd`/teststoptheworld.so /your/app
*/
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cpp
index d64379a4450..8bbb11c40db 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_suppressions_test.cc ------------------------------------===//
+//===-- sanitizer_suppressions_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_symbolizer_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_symbolizer_test.cpp
index e6bdeaa5639..1e70c146b46 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_symbolizer_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_symbolizer_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_symbolizer_test.cc --------------------------------------===//
+//===-- sanitizer_symbolizer_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_test_main.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_test_main.cpp
index 8edee745882..caab5ec288e 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_test_main.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_test_main.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_test_main.cc --------------------------------------------===//
+//===-- sanitizer_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cpp
index 09c01d6c8f4..6c380f1c154 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_thread_registry_test.cc ---------------------------------===//
+//===-- sanitizer_thread_registry_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_type_traits_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_type_traits_test.cpp
index ccefeb6869a..40f6e47e526 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_type_traits_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_type_traits_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_type_traits_test.cc -------------------------------------===//
+//===-- sanitizer_type_traits_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_vector_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_vector_test.cpp
index 5d96e9b946d..771319ce1f3 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_vector_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_vector_test.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_vector_test.cc ------------------------------------------===//
+//===-- sanitizer_vector_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.
diff --git a/compiler-rt/lib/sanitizer_common/tests/standalone_malloc_test.cc b/compiler-rt/lib/sanitizer_common/tests/standalone_malloc_test.cpp
index 9e6f7c93b04..9e6f7c93b04 100644
--- a/compiler-rt/lib/sanitizer_common/tests/standalone_malloc_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/standalone_malloc_test.cpp
OpenPOWER on IntegriCloud