Like r367463, but for tsan/tests/{rtl,unit}.
llvm-svn: 367566
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
// 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).
//
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}
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
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})
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.
-//===-- 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.