summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-08-01 14:01:30 +0000
committerNico Weber <nicolasweber@gmx.de>2019-08-01 14:01:30 +0000
commitae1fc9baae4ebfdb30c7f6a5440e6064d3f9f09c (patch)
treef9f63e3a5a34f07754915bedd259553cb3a95922
parent9642e337ebe672c3810c80cf9920f3678806ea20 (diff)
downloadbcm5719-llvm-ae1fc9baae4ebfdb30c7f6a5440e6064d3f9f09c.tar.gz
bcm5719-llvm-ae1fc9baae4ebfdb30c7f6a5440e6064d3f9f09c.zip
compiler-rt: Rename .cc file in lib/lsan to .cpp
Like r367463, but for lsan. llvm-svn: 367561
-rw-r--r--compiler-rt/lib/lsan/CMakeLists.txt27
-rw-r--r--compiler-rt/lib/lsan/lsan.cpp (renamed from compiler-rt/lib/lsan/lsan.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_allocator.cpp (renamed from compiler-rt/lib/lsan/lsan_allocator.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_common.cpp (renamed from compiler-rt/lib/lsan/lsan_common.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_common_linux.cpp (renamed from compiler-rt/lib/lsan/lsan_common_linux.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_common_mac.cpp (renamed from compiler-rt/lib/lsan/lsan_common_mac.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_interceptors.cpp (renamed from compiler-rt/lib/lsan/lsan_interceptors.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_linux.cpp (renamed from compiler-rt/lib/lsan/lsan_linux.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_mac.cpp (renamed from compiler-rt/lib/lsan/lsan_mac.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_malloc_mac.cpp (renamed from compiler-rt/lib/lsan/lsan_malloc_mac.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_preinit.cpp (renamed from compiler-rt/lib/lsan/lsan_preinit.cc)2
-rw-r--r--compiler-rt/lib/lsan/lsan_thread.cpp (renamed from compiler-rt/lib/lsan/lsan_thread.cc)2
-rwxr-xr-xcompiler-rt/lib/sanitizer_common/scripts/check_lint.sh2
13 files changed, 27 insertions, 24 deletions
diff --git a/compiler-rt/lib/lsan/CMakeLists.txt b/compiler-rt/lib/lsan/CMakeLists.txt
index 34f686135ac..65d47476939 100644
--- a/compiler-rt/lib/lsan/CMakeLists.txt
+++ b/compiler-rt/lib/lsan/CMakeLists.txt
@@ -4,26 +4,29 @@ set(LSAN_CFLAGS ${SANITIZER_COMMON_CFLAGS})
append_rtti_flag(OFF LSAN_CFLAGS)
set(LSAN_COMMON_SOURCES
- lsan_common.cc
- lsan_common_linux.cc
- lsan_common_mac.cc)
+ lsan_common.cpp
+ lsan_common_linux.cpp
+ lsan_common_mac.cpp
+ )
set(LSAN_SOURCES
- lsan.cc
- lsan_allocator.cc
- lsan_linux.cc
- lsan_interceptors.cc
- lsan_mac.cc
- lsan_malloc_mac.cc
- lsan_preinit.cc
- lsan_thread.cc)
+ lsan.cpp
+ lsan_allocator.cpp
+ lsan_linux.cpp
+ lsan_interceptors.cpp
+ lsan_mac.cpp
+ lsan_malloc_mac.cpp
+ lsan_preinit.cpp
+ lsan_thread.cpp
+ )
set(LSAN_HEADERS
lsan.h
lsan_allocator.h
lsan_common.h
lsan_flags.inc
- lsan_thread.h)
+ lsan_thread.h
+ )
set(LSAN_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/compiler-rt/lib/lsan/lsan.cc b/compiler-rt/lib/lsan/lsan.cpp
index 68697a6363e..5b5f6198a69 100644
--- a/compiler-rt/lib/lsan/lsan.cc
+++ b/compiler-rt/lib/lsan/lsan.cpp
@@ -1,4 +1,4 @@
-//=-- lsan.cc -------------------------------------------------------------===//
+//=-- lsan.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/lsan/lsan_allocator.cc b/compiler-rt/lib/lsan/lsan_allocator.cpp
index 8b13e4c028d..66a81ab350e 100644
--- a/compiler-rt/lib/lsan/lsan_allocator.cc
+++ b/compiler-rt/lib/lsan/lsan_allocator.cpp
@@ -1,4 +1,4 @@
-//=-- lsan_allocator.cc ---------------------------------------------------===//
+//=-- lsan_allocator.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/lsan/lsan_common.cc b/compiler-rt/lib/lsan/lsan_common.cpp
index 7c842a152d5..c39fab97c64 100644
--- a/compiler-rt/lib/lsan/lsan_common.cc
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -1,4 +1,4 @@
-//=-- lsan_common.cc ------------------------------------------------------===//
+//=-- lsan_common.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/lsan/lsan_common_linux.cc b/compiler-rt/lib/lsan/lsan_common_linux.cpp
index ef4f591d88f..9ce27a983b5 100644
--- a/compiler-rt/lib/lsan/lsan_common_linux.cc
+++ b/compiler-rt/lib/lsan/lsan_common_linux.cpp
@@ -1,4 +1,4 @@
-//=-- lsan_common_linux.cc ------------------------------------------------===//
+//=-- lsan_common_linux.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/lsan/lsan_common_mac.cc b/compiler-rt/lib/lsan/lsan_common_mac.cpp
index 14c2b371199..5204a6624ed 100644
--- a/compiler-rt/lib/lsan/lsan_common_mac.cc
+++ b/compiler-rt/lib/lsan/lsan_common_mac.cpp
@@ -1,4 +1,4 @@
-//=-- lsan_common_mac.cc --------------------------------------------------===//
+//=-- lsan_common_mac.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/lsan/lsan_interceptors.cc b/compiler-rt/lib/lsan/lsan_interceptors.cpp
index 4a4c86a9dca..f06d5fff706 100644
--- a/compiler-rt/lib/lsan/lsan_interceptors.cc
+++ b/compiler-rt/lib/lsan/lsan_interceptors.cpp
@@ -1,4 +1,4 @@
-//=-- lsan_interceptors.cc ------------------------------------------------===//
+//=-- lsan_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/lsan/lsan_linux.cc b/compiler-rt/lib/lsan/lsan_linux.cpp
index 22d034280d7..14a42b75d2a 100644
--- a/compiler-rt/lib/lsan/lsan_linux.cc
+++ b/compiler-rt/lib/lsan/lsan_linux.cpp
@@ -1,4 +1,4 @@
-//=-- lsan_linux.cc -------------------------------------------------------===//
+//=-- lsan_linux.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/lsan/lsan_mac.cc b/compiler-rt/lib/lsan/lsan_mac.cpp
index 435f41b6f8b..7bcd9c828ef 100644
--- a/compiler-rt/lib/lsan/lsan_mac.cc
+++ b/compiler-rt/lib/lsan/lsan_mac.cpp
@@ -1,4 +1,4 @@
-//===-- lsan_mac.cc -------------------------------------------------------===//
+//===-- lsan_mac.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/lsan/lsan_malloc_mac.cc b/compiler-rt/lib/lsan/lsan_malloc_mac.cpp
index 34447b4b39f..d03eb2e915c 100644
--- a/compiler-rt/lib/lsan/lsan_malloc_mac.cc
+++ b/compiler-rt/lib/lsan/lsan_malloc_mac.cpp
@@ -1,4 +1,4 @@
-//===-- lsan_malloc_mac.cc ------------------------------------------------===//
+//===-- lsan_malloc_mac.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/lsan/lsan_preinit.cc b/compiler-rt/lib/lsan/lsan_preinit.cpp
index 5d0ad89a8b0..cd94e1e8718 100644
--- a/compiler-rt/lib/lsan/lsan_preinit.cc
+++ b/compiler-rt/lib/lsan/lsan_preinit.cpp
@@ -1,4 +1,4 @@
-//===-- lsan_preinit.cc ---------------------------------------------------===//
+//===-- lsan_preinit.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/lsan/lsan_thread.cc b/compiler-rt/lib/lsan/lsan_thread.cpp
index 77f6a9236dd..84e7ce61b97 100644
--- a/compiler-rt/lib/lsan/lsan_thread.cc
+++ b/compiler-rt/lib/lsan/lsan_thread.cpp
@@ -1,4 +1,4 @@
-//=-- lsan_thread.cc ------------------------------------------------------===//
+//=-- lsan_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.
diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
index db3758ee529..e616725ecf2 100755
--- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
+++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
@@ -103,7 +103,7 @@ run_lint ${MSAN_RTL_LINT_FILTER} ${MSAN_RTL}/*.cc \
# LSan
LSAN_RTL=${COMPILER_RT}/lib/lsan
-run_lint ${LSAN_RTL_LINT_FILTER} ${LSAN_RTL}/*.cc \
+run_lint ${LSAN_RTL_LINT_FILTER} ${LSAN_RTL}/*.cpp \
${LSAN_RTL}/*.h &
run_lint ${LSAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/lsan/*/*.cc &
OpenPOWER on IntegriCloud