From a9aa8137929eec7a1f1ae5a9b53c21b5e5f4c787 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 1 Aug 2019 12:41:23 +0000 Subject: [PATCH] compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp Like r367463, but for dfsan, stats, ubsan_minimal. llvm-svn: 367551 --- compiler-rt/lib/dfsan/CMakeLists.txt | 10 ++++++---- compiler-rt/lib/dfsan/{dfsan.cc => dfsan.cpp} | 2 +- .../lib/dfsan/{dfsan_custom.cc => dfsan_custom.cpp} | 2 +- .../{dfsan_interceptors.cc => dfsan_interceptors.cpp} | 2 +- compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh | 2 +- compiler-rt/lib/stats/CMakeLists.txt | 4 ++-- compiler-rt/lib/stats/{stats.cc => stats.cpp} | 2 +- .../lib/stats/{stats_client.cc => stats_client.cpp} | 2 +- compiler-rt/lib/ubsan_minimal/CMakeLists.txt | 2 +- ..._minimal_handlers.cc => ubsan_minimal_handlers.cpp} | 0 10 files changed, 15 insertions(+), 13 deletions(-) rename compiler-rt/lib/dfsan/{dfsan.cc => dfsan.cpp} (99%) rename compiler-rt/lib/dfsan/{dfsan_custom.cc => dfsan_custom.cpp} (99%) rename compiler-rt/lib/dfsan/{dfsan_interceptors.cc => dfsan_interceptors.cpp} (95%) rename compiler-rt/lib/stats/{stats.cc => stats.cpp} (98%) rename compiler-rt/lib/stats/{stats_client.cc => stats_client.cpp} (97%) rename compiler-rt/lib/ubsan_minimal/{ubsan_minimal_handlers.cc => ubsan_minimal_handlers.cpp} (100%) diff --git a/compiler-rt/lib/dfsan/CMakeLists.txt b/compiler-rt/lib/dfsan/CMakeLists.txt index b3ae713cf02c..051215edbeb7 100644 --- a/compiler-rt/lib/dfsan/CMakeLists.txt +++ b/compiler-rt/lib/dfsan/CMakeLists.txt @@ -2,14 +2,16 @@ include_directories(..) # Runtime library sources and build flags. set(DFSAN_RTL_SOURCES - dfsan.cc - dfsan_custom.cc - dfsan_interceptors.cc) + dfsan.cpp + dfsan_custom.cpp + dfsan_interceptors.cpp + ) set(DFSAN_RTL_HEADERS dfsan.h dfsan_flags.inc - dfsan_platform.h) + dfsan_platform.h + ) set(DFSAN_COMMON_CFLAGS ${SANITIZER_COMMON_CFLAGS}) append_rtti_flag(OFF DFSAN_COMMON_CFLAGS) diff --git a/compiler-rt/lib/dfsan/dfsan.cc b/compiler-rt/lib/dfsan/dfsan.cpp similarity index 99% rename from compiler-rt/lib/dfsan/dfsan.cc rename to compiler-rt/lib/dfsan/dfsan.cpp index f4ba1148f782..0e2fb9f5f334 100644 --- a/compiler-rt/lib/dfsan/dfsan.cc +++ b/compiler-rt/lib/dfsan/dfsan.cpp @@ -1,4 +1,4 @@ -//===-- dfsan.cc ----------------------------------------------------------===// +//===-- dfsan.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/dfsan/dfsan_custom.cc b/compiler-rt/lib/dfsan/dfsan_custom.cpp similarity index 99% rename from compiler-rt/lib/dfsan/dfsan_custom.cc rename to compiler-rt/lib/dfsan/dfsan_custom.cpp index dc7b81da4566..78d12d7d652a 100644 --- a/compiler-rt/lib/dfsan/dfsan_custom.cc +++ b/compiler-rt/lib/dfsan/dfsan_custom.cpp @@ -1,4 +1,4 @@ -//===-- dfsan.cc ----------------------------------------------------------===// +//===-- dfsan.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/dfsan/dfsan_interceptors.cc b/compiler-rt/lib/dfsan/dfsan_interceptors.cpp similarity index 95% rename from compiler-rt/lib/dfsan/dfsan_interceptors.cc rename to compiler-rt/lib/dfsan/dfsan_interceptors.cpp index f4b4babc65c2..673171c46f5a 100644 --- a/compiler-rt/lib/dfsan/dfsan_interceptors.cc +++ b/compiler-rt/lib/dfsan/dfsan_interceptors.cpp @@ -1,4 +1,4 @@ -//===-- dfsan_interceptors.cc ---------------------------------------------===// +//===-- dfsan_interceptors.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/dfsan/scripts/check_custom_wrappers.sh b/compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh index 9a80cb9c6ffd..2ada8a77e702 100755 --- a/compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh +++ b/compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh @@ -2,7 +2,7 @@ DFSAN_DIR=$(dirname "$0")/../ DFSAN_CUSTOM_TESTS=${DFSAN_DIR}/../../test/dfsan/custom.cc -DFSAN_CUSTOM_WRAPPERS=${DFSAN_DIR}/dfsan_custom.cc +DFSAN_CUSTOM_WRAPPERS=${DFSAN_DIR}/dfsan_custom.pp DFSAN_ABI_LIST=${DFSAN_DIR}/done_abilist.txt DIFFOUT=$(mktemp -q /tmp/tmp.XXXXXXXXXX) diff --git a/compiler-rt/lib/stats/CMakeLists.txt b/compiler-rt/lib/stats/CMakeLists.txt index 23c80843195d..af58e2533b8d 100644 --- a/compiler-rt/lib/stats/CMakeLists.txt +++ b/compiler-rt/lib/stats/CMakeLists.txt @@ -24,7 +24,7 @@ add_compiler_rt_runtime(clang_rt.stats ${STATS_LIB_FLAVOR} ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH} OS ${SANITIZER_COMMON_SUPPORTED_OS} - SOURCES stats.cc + SOURCES stats.cpp ADDITIONAL_HEADERS ${STATS_HEADERS} OBJECT_LIBS RTSanitizerCommon RTSanitizerCommonLibc @@ -38,7 +38,7 @@ add_compiler_rt_runtime(clang_rt.stats_client STATIC ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH} OS ${SANITIZER_COMMON_SUPPORTED_OS} - SOURCES stats_client.cc + SOURCES stats_client.cpp ADDITIONAL_HEADERS ${STATS_HEADERS} CFLAGS ${SANITIZER_COMMON_CFLAGS} LINK_FLAGS ${WEAK_SYMBOL_LINK_FLAGS} diff --git a/compiler-rt/lib/stats/stats.cc b/compiler-rt/lib/stats/stats.cpp similarity index 98% rename from compiler-rt/lib/stats/stats.cc rename to compiler-rt/lib/stats/stats.cpp index 8d4a115d1aef..da254fdb5a52 100644 --- a/compiler-rt/lib/stats/stats.cc +++ b/compiler-rt/lib/stats/stats.cpp @@ -1,4 +1,4 @@ -//===-- stats.cc ----------------------------------------------------------===// +//===-- stats.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/stats/stats_client.cc b/compiler-rt/lib/stats/stats_client.cpp similarity index 97% rename from compiler-rt/lib/stats/stats_client.cc rename to compiler-rt/lib/stats/stats_client.cpp index 0790f57372f4..52eab8eea079 100644 --- a/compiler-rt/lib/stats/stats_client.cc +++ b/compiler-rt/lib/stats/stats_client.cpp @@ -1,4 +1,4 @@ -//===-- stats_client.cc ---------------------------------------------------===// +//===-- stats_client.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/ubsan_minimal/CMakeLists.txt b/compiler-rt/lib/ubsan_minimal/CMakeLists.txt index e0910e80f97e..d7aa8dbcd8ba 100644 --- a/compiler-rt/lib/ubsan_minimal/CMakeLists.txt +++ b/compiler-rt/lib/ubsan_minimal/CMakeLists.txt @@ -1,7 +1,7 @@ # Build for the minimal undefined behavior sanitizer runtime support library. set(UBSAN_MINIMAL_SOURCES - ubsan_minimal_handlers.cc + ubsan_minimal_handlers.cpp ) include_directories(..) diff --git a/compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cc b/compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cpp similarity index 100% rename from compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cc rename to compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cpp -- 2.34.1