compiler-rt: Rename .cc file in lib/lsan to .cpp
authorNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:01:30 +0000 (14:01 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 1 Aug 2019 14:01:30 +0000 (14:01 +0000)
Like r367463, but for lsan.

llvm-svn: 367561

13 files changed:
compiler-rt/lib/lsan/CMakeLists.txt
compiler-rt/lib/lsan/lsan.cpp [moved from compiler-rt/lib/lsan/lsan.cc with 98% similarity]
compiler-rt/lib/lsan/lsan_allocator.cpp [moved from compiler-rt/lib/lsan/lsan_allocator.cc with 99% similarity]
compiler-rt/lib/lsan/lsan_common.cpp [moved from compiler-rt/lib/lsan/lsan_common.cc with 99% similarity]
compiler-rt/lib/lsan/lsan_common_linux.cpp [moved from compiler-rt/lib/lsan/lsan_common_linux.cc with 98% similarity]
compiler-rt/lib/lsan/lsan_common_mac.cpp [moved from compiler-rt/lib/lsan/lsan_common_mac.cc with 99% similarity]
compiler-rt/lib/lsan/lsan_interceptors.cpp [moved from compiler-rt/lib/lsan/lsan_interceptors.cc with 99% similarity]
compiler-rt/lib/lsan/lsan_linux.cpp [moved from compiler-rt/lib/lsan/lsan_linux.cc with 93% similarity]
compiler-rt/lib/lsan/lsan_mac.cpp [moved from compiler-rt/lib/lsan/lsan_mac.cc with 99% similarity]
compiler-rt/lib/lsan/lsan_malloc_mac.cpp [moved from compiler-rt/lib/lsan/lsan_malloc_mac.cc with 97% similarity]
compiler-rt/lib/lsan/lsan_preinit.cpp [moved from compiler-rt/lib/lsan/lsan_preinit.cc with 92% similarity]
compiler-rt/lib/lsan/lsan_thread.cpp [moved from compiler-rt/lib/lsan/lsan_thread.cc with 98% similarity]
compiler-rt/lib/sanitizer_common/scripts/check_lint.sh

index 34f6861..65d4747 100644 (file)
@@ -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})
 
similarity index 98%
rename from compiler-rt/lib/lsan/lsan.cc
rename to compiler-rt/lib/lsan/lsan.cpp
index 68697a6..5b5f619 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/lsan/lsan_allocator.cc
rename to compiler-rt/lib/lsan/lsan_allocator.cpp
index 8b13e4c..66a81ab 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/lsan/lsan_common.cc
rename to compiler-rt/lib/lsan/lsan_common.cpp
index 7c842a1..c39fab9 100644 (file)
@@ -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.
similarity index 98%
rename from compiler-rt/lib/lsan/lsan_common_linux.cc
rename to compiler-rt/lib/lsan/lsan_common_linux.cpp
index ef4f591..9ce27a9 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/lsan/lsan_common_mac.cc
rename to compiler-rt/lib/lsan/lsan_common_mac.cpp
index 14c2b37..5204a66 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/lsan/lsan_interceptors.cc
rename to compiler-rt/lib/lsan/lsan_interceptors.cpp
index 4a4c86a..f06d5ff 100644 (file)
@@ -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.
similarity index 93%
rename from compiler-rt/lib/lsan/lsan_linux.cc
rename to compiler-rt/lib/lsan/lsan_linux.cpp
index 22d0342..14a42b7 100644 (file)
@@ -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.
similarity index 99%
rename from compiler-rt/lib/lsan/lsan_mac.cc
rename to compiler-rt/lib/lsan/lsan_mac.cpp
index 435f41b..7bcd9c8 100644 (file)
@@ -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.
similarity index 97%
rename from compiler-rt/lib/lsan/lsan_malloc_mac.cc
rename to compiler-rt/lib/lsan/lsan_malloc_mac.cpp
index 34447b4..d03eb2e 100644 (file)
@@ -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.
similarity index 92%
rename from compiler-rt/lib/lsan/lsan_preinit.cc
rename to compiler-rt/lib/lsan/lsan_preinit.cpp
index 5d0ad89..cd94e1e 100644 (file)
@@ -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.
similarity index 98%
rename from compiler-rt/lib/lsan/lsan_thread.cc
rename to compiler-rt/lib/lsan/lsan_thread.cpp
index 77f6a92..84e7ce6 100644 (file)
@@ -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.
index db3758e..e616725 100755 (executable)
@@ -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 &