compiler-rt: Rename .cc file in lib/tsan/tests/{rtl,unit} to .cpp

Like r367463, but for tsan/tests/{rtl,unit}.

llvm-svn: 367566
This commit is contained in:
Nico Weber 2019-08-01 14:26:37 +00:00
parent 1fc2a47f0b
commit 5de29a4b0e
22 changed files with 43 additions and 38 deletions

View File

@ -91,9 +91,9 @@ run_lint ${ASAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/asan/*/*.cc &
TSAN_RTL=${COMPILER_RT}/lib/tsan TSAN_RTL=${COMPILER_RT}/lib/tsan
run_lint ${TSAN_RTL_LINT_FILTER} ${TSAN_RTL}/rtl/*.cpp \ run_lint ${TSAN_RTL_LINT_FILTER} ${TSAN_RTL}/rtl/*.cpp \
${TSAN_RTL}/rtl/*.h & ${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/rtl/*.h \
${TSAN_RTL}/tests/unit/*.cc & ${TSAN_RTL}/tests/unit/*.cpp &
run_lint ${TSAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/tsan/*.cc & run_lint ${TSAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/tsan/*.cc &
# MSan # MSan

View File

@ -40,7 +40,7 @@
// release(dst); // 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 // However, the implementation is significantly more complex. The complexity
// allows to implement important classes of use cases in O(1) instead of O(N). // allows to implement important classes of use cases in O(1) instead of O(N).
// //

View File

@ -1,18 +1,22 @@
set(TSAN_RTL_TEST_SOURCES set(TSAN_RTL_TEST_SOURCES
tsan_bench.cc tsan_bench.cpp
tsan_mop.cc tsan_mop.cpp
tsan_mutex.cc tsan_mutex.cpp
tsan_posix.cc tsan_posix.cpp
tsan_string.cc tsan_string.cpp
tsan_test.cc tsan_test.cpp
tsan_thread.cc) tsan_thread.cpp
)
if(UNIX) 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() endif()
set(TSAN_RTL_TEST_HEADERS set(TSAN_RTL_TEST_HEADERS
tsan_test_util.h) tsan_test_util.h
)
add_tsan_unittest(TsanRtlTest add_tsan_unittest(TsanRtlTest
SOURCES ${TSAN_RTL_TEST_SOURCES} SOURCES ${TSAN_RTL_TEST_SOURCES}

View 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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View 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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View 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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View 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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -1,4 +1,4 @@
//===-- tsan_string.cc ----------------------------------------------------===// //===-- tsan_string.cpp ---------------------------------------------------===//
// //
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View 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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -1,4 +1,4 @@
//===-- tsan_thread.cc ----------------------------------------------------===// //===-- tsan_thread.cpp ---------------------------------------------------===//
// //
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -1,12 +1,13 @@
set(TSAN_UNIT_TEST_SOURCES set(TSAN_UNIT_TEST_SOURCES
tsan_clock_test.cc tsan_clock_test.cpp
tsan_flags_test.cc tsan_flags_test.cpp
tsan_mman_test.cc tsan_mman_test.cpp
tsan_mutex_test.cc tsan_mutex_test.cpp
tsan_shadow_test.cc tsan_shadow_test.cpp
tsan_stack_test.cc tsan_stack_test.cpp
tsan_sync_test.cc tsan_sync_test.cpp
tsan_unit_test_main.cc) tsan_unit_test_main.cpp
)
add_tsan_unittest(TsanUnitTest add_tsan_unittest(TsanUnitTest
SOURCES ${TSAN_UNIT_TEST_SOURCES}) SOURCES ${TSAN_UNIT_TEST_SOURCES})

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.

View File

@ -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. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information. // See https://llvm.org/LICENSE.txt for license information.