hwasan: Rename source files from cc to cpp
authorNico Weber <nicolasweber@gmx.de>
Wed, 27 Feb 2019 15:44:03 +0000 (15:44 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 27 Feb 2019 15:44:03 +0000 (15:44 +0000)
As discussed elsewhere: LLVM uses cpp as its C++ source extension; the
sanitizers should too. This updates files in hwasan.

Patch generated by

    for f in lib/hwasan/*.cc ; do svn mv $f ${f%.cc}.cpp; done

followed by

    for f in lib/hwasan/*.cpp ; do sed -i '' -e '1s/\.cc -/.cpp /' $f; done

CMakeLists.txt updated manually.

Differential Revision: https://reviews.llvm.org/D58620

llvm-svn: 354989

12 files changed:
compiler-rt/lib/hwasan/CMakeLists.txt
compiler-rt/lib/hwasan/hwasan.cpp [moved from compiler-rt/lib/hwasan/hwasan.cc with 99% similarity]
compiler-rt/lib/hwasan/hwasan_allocator.cpp [moved from compiler-rt/lib/hwasan/hwasan_allocator.cc with 99% similarity]
compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp [moved from compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cc with 98% similarity]
compiler-rt/lib/hwasan/hwasan_interceptors.cpp [moved from compiler-rt/lib/hwasan/hwasan_interceptors.cc with 99% similarity]
compiler-rt/lib/hwasan/hwasan_linux.cpp [moved from compiler-rt/lib/hwasan/hwasan_linux.cc with 99% similarity]
compiler-rt/lib/hwasan/hwasan_memintrinsics.cpp [moved from compiler-rt/lib/hwasan/hwasan_memintrinsics.cc with 96% similarity]
compiler-rt/lib/hwasan/hwasan_new_delete.cpp [moved from compiler-rt/lib/hwasan/hwasan_new_delete.cc with 97% similarity]
compiler-rt/lib/hwasan/hwasan_poisoning.cpp [moved from compiler-rt/lib/hwasan/hwasan_poisoning.cc with 96% similarity]
compiler-rt/lib/hwasan/hwasan_report.cpp [moved from compiler-rt/lib/hwasan/hwasan_report.cc with 99% similarity]
compiler-rt/lib/hwasan/hwasan_thread.cpp [moved from compiler-rt/lib/hwasan/hwasan_thread.cc with 100% similarity]
compiler-rt/lib/hwasan/hwasan_thread_list.cpp [moved from compiler-rt/lib/hwasan/hwasan_thread_list.cc with 100% similarity]

index 7460abc..8323358 100644 (file)
@@ -2,20 +2,21 @@ include_directories(..)
 
 # Runtime library sources and build flags.
 set(HWASAN_RTL_SOURCES
-  hwasan.cc
-  hwasan_allocator.cc
-  hwasan_dynamic_shadow.cc
-  hwasan_interceptors.cc
-  hwasan_linux.cc
-  hwasan_memintrinsics.cc
-  hwasan_poisoning.cc
-  hwasan_report.cc
-  hwasan_thread.cc
-  hwasan_thread_list.cc
+  hwasan.cpp
+  hwasan_allocator.cpp
+  hwasan_dynamic_shadow.cpp
+  hwasan_interceptors.cpp
+  hwasan_linux.cpp
+  hwasan_memintrinsics.cpp
+  hwasan_poisoning.cpp
+  hwasan_report.cpp
+  hwasan_thread.cpp
+  hwasan_thread_list.cpp
   )
 
 set(HWASAN_RTL_CXX_SOURCES
-  hwasan_new_delete.cc)
+  hwasan_new_delete.cpp
+  )
 
 set(HWASAN_RTL_HEADERS
   hwasan.h
similarity index 99%
rename from compiler-rt/lib/hwasan/hwasan.cc
rename to compiler-rt/lib/hwasan/hwasan.cpp
index 9c83f73..5ac53f2 100644 (file)
@@ -1,4 +1,4 @@
-//===-- hwasan.cc ---------------------------------------------------------===//
+//===-- hwasan.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/hwasan/hwasan_allocator.cc
rename to compiler-rt/lib/hwasan/hwasan_allocator.cpp
index 09f1ab9..19f1baf 100644 (file)
@@ -1,4 +1,4 @@
-//===-- hwasan_allocator.cc ------------------------- ---------------------===//
+//===-- hwasan_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.
@@ -1,4 +1,4 @@
-//===-- hwasan_dynamic_shadow.cc --------------------------------*- C++ -*-===//
+//===-- hwasan_dynamic_shadow.cpp -------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -1,4 +1,4 @@
-//===-- hwasan_interceptors.cc --------------------------------------------===//
+//===-- hwasan_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 99%
rename from compiler-rt/lib/hwasan/hwasan_linux.cc
rename to compiler-rt/lib/hwasan/hwasan_linux.cpp
index c922c11..4ab7c32 100644 (file)
@@ -1,4 +1,4 @@
-//===-- hwasan_linux.cc -----------------------------------------*- C++ -*-===//
+//===-- hwasan_linux.cpp ----------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -1,4 +1,4 @@
-//===-- hwasan_memintrinsics.cc ---------------------------------*- C++ -*-===//
+//===-- hwasan_memintrinsics.cpp --------------------------------*- C++ -*-===//
 //
 // 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/hwasan/hwasan_new_delete.cc
rename to compiler-rt/lib/hwasan/hwasan_new_delete.cpp
index 9ecc350..438a369 100644 (file)
@@ -1,4 +1,4 @@
-//===-- hwasan_new_delete.cc ----------------------------------------------===//
+//===-- hwasan_new_delete.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 96%
rename from compiler-rt/lib/hwasan/hwasan_poisoning.cc
rename to compiler-rt/lib/hwasan/hwasan_poisoning.cpp
index 9404c52..2a08164 100644 (file)
@@ -1,4 +1,4 @@
-//===-- hwasan_poisoning.cc -------------------------------------*- C++ -*-===//
+//===-- hwasan_poisoning.cpp ------------------------------------*- C++ -*-===//
 //
 // 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/hwasan/hwasan_report.cc
rename to compiler-rt/lib/hwasan/hwasan_report.cpp
index 7621713..b1002c5 100644 (file)
@@ -1,4 +1,4 @@
-//===-- hwasan_report.cc --------------------------------------------------===//
+//===-- hwasan_report.cpp -------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.