compiler-rt: Rename .cc file in lib/asan/tests to .cpp

Like r367463, but for asan/tests

llvm-svn: 367559
This commit is contained in:
Nico Weber 2019-08-01 13:48:31 +00:00
parent 217222abea
commit b47455b573
16 changed files with 36 additions and 28 deletions

View File

@ -32,7 +32,8 @@ set(ASAN_UNITTEST_COMMON_CFLAGS
-O2 -O2
-Wno-format -Wno-format
-Werror=sign-compare -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) append_list_if(COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG -Wno-variadic-macros ASAN_UNITTEST_COMMON_CFLAGS)
# This will ensure the target linker is used # This will ensure the target linker is used
@ -56,7 +57,8 @@ list(APPEND ASAN_UNITTEST_COMMON_CFLAGS
${COMPILER_RT_ASAN_SHADOW_SCALE_FLAG} ${COMPILER_RT_ASAN_SHADOW_SCALE_FLAG}
-DASAN_HAS_BLACKLIST=1 -DASAN_HAS_BLACKLIST=1
-DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_EXCEPTIONS=1
-DASAN_UAR=0) -DASAN_UAR=0
)
if(APPLE) if(APPLE)
list(APPEND ASAN_UNITTEST_COMMON_CFLAGS ${DARWIN_osx_CFLAGS}) 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 set(ASAN_NOINST_TEST_SOURCES
${COMPILER_RT_GTEST_SOURCE} ${COMPILER_RT_GTEST_SOURCE}
asan_fake_stack_test.cc asan_fake_stack_test.cpp
asan_noinst_test.cc asan_noinst_test.cpp
asan_test_main.cc) asan_test_main.cpp
)
set(ASAN_INST_TEST_SOURCES set(ASAN_INST_TEST_SOURCES
${COMPILER_RT_GTEST_SOURCE} ${COMPILER_RT_GTEST_SOURCE}
asan_globals_test.cc asan_globals_test.cpp
asan_interface_test.cc asan_interface_test.cpp
asan_internal_interface_test.cc asan_internal_interface_test.cpp
asan_test.cc asan_test.cpp
asan_oob_test.cc asan_oob_test.cpp
asan_mem_test.cc asan_mem_test.cpp
asan_str_test.cc asan_str_test.cpp
asan_test_main.cc) asan_test_main.cpp
)
if(APPLE) 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() endif()
set(ASAN_BENCHMARKS_SOURCES set(ASAN_BENCHMARKS_SOURCES
${COMPILER_RT_GTEST_SOURCE} ${COMPILER_RT_GTEST_SOURCE}
asan_benchmarks_test.cc) asan_benchmarks_test.cpp
)
function(add_asan_tests arch test_runtime) function(add_asan_tests arch test_runtime)
cmake_parse_arguments(TEST "" "KIND" "CFLAGS" ${ARGN}) cmake_parse_arguments(TEST "" "KIND" "CFLAGS" ${ARGN})

View File

@ -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. // 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 @@
//===-- asan_fake_stack_test.cc -------------------------------------------===// //===-- asan_fake_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 @@
//===-- asan_globals_test.cc ----------------------------------------------===// //===-- asan_globals_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 @@
//===-- asan_interface_test.cc --------------------------------------------===// //===-- asan_interface_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 @@
//===-- asan_internal_interface_test.cc -----------------------------------===// //===-- asan_internal_interface_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 @@
//===-- asan_test_mac.cc --------------------------------------------------===// //===-- asan_test_mac.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 @@
//===-- asan_mem_test.cc --------------------------------------------------===// //===-- asan_mem_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 @@
//===-- asan_noinst_test.cc -----------------------------------------------===// //===-- asan_noinst_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 @@
//===-- asan_oob_test.cc --------------------------------------------------===// //===-- asan_oob_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 @@
//=-- asan_str_test.cc ----------------------------------------------------===// //=-- asan_str_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 @@
//===-- asan_test.cc ------------------------------------------------------===// //===-- asan_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 @@
//===-- asan_test_main.cc -------------------------------------------------===// //===-- asan_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.

View File

@ -83,7 +83,7 @@ run_lint ${ASAN_RTL_LINT_FILTER} ${INTERCEPTION}/*.cpp \
ASAN_RTL=${COMPILER_RT}/lib/asan ASAN_RTL=${COMPILER_RT}/lib/asan
run_lint ${ASAN_RTL_LINT_FILTER} ${ASAN_RTL}/*.cpp \ run_lint ${ASAN_RTL_LINT_FILTER} ${ASAN_RTL}/*.cpp \
${ASAN_RTL}/*.h & ${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 & ${ASAN_RTL}/tests/*.h &
run_lint ${ASAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/asan/*/*.cc & run_lint ${ASAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/asan/*/*.cc &