From 60c66db476a5ebeb2542117ddc2db528b8912687 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 1 Aug 2019 14:08:18 +0000 Subject: [PATCH] compiler-rt: Rename .cc file in lib/msan to .cpp Like r367463, but for msan. llvm-svn: 367562 --- compiler-rt/lib/msan/CMakeLists.txt | 19 ++++++++++--------- compiler-rt/lib/msan/{msan.cc => msan.cpp} | 2 +- .../{msan_allocator.cc => msan_allocator.cpp} | 2 +- ...depot.cc => msan_chained_origin_depot.cpp} | 2 +- ..._interceptors.cc => msan_interceptors.cpp} | 2 +- .../msan/{msan_linux.cc => msan_linux.cpp} | 2 +- ...msan_new_delete.cc => msan_new_delete.cpp} | 2 +- .../{msan_poisoning.cc => msan_poisoning.cpp} | 2 +- .../msan/{msan_report.cc => msan_report.cpp} | 2 +- .../msan/{msan_thread.cc => msan_thread.cpp} | 0 .../sanitizer_common/scripts/check_lint.sh | 2 +- .../test/msan/chained_origin_memcpy.cc | 14 +++++++------- compiler-rt/test/msan/msan_copy_shadow.cc | 8 ++++---- 13 files changed, 30 insertions(+), 29 deletions(-) rename compiler-rt/lib/msan/{msan.cc => msan.cpp} (99%) rename compiler-rt/lib/msan/{msan_allocator.cc => msan_allocator.cpp} (99%) rename compiler-rt/lib/msan/{msan_chained_origin_depot.cc => msan_chained_origin_depot.cpp} (98%) rename compiler-rt/lib/msan/{msan_interceptors.cc => msan_interceptors.cpp} (99%) rename compiler-rt/lib/msan/{msan_linux.cc => msan_linux.cpp} (99%) rename compiler-rt/lib/msan/{msan_new_delete.cc => msan_new_delete.cpp} (98%) rename compiler-rt/lib/msan/{msan_poisoning.cc => msan_poisoning.cpp} (98%) rename compiler-rt/lib/msan/{msan_report.cc => msan_report.cpp} (99%) rename compiler-rt/lib/msan/{msan_thread.cc => msan_thread.cpp} (100%) diff --git a/compiler-rt/lib/msan/CMakeLists.txt b/compiler-rt/lib/msan/CMakeLists.txt index 15cc513c20e9..9e9bf6543932 100644 --- a/compiler-rt/lib/msan/CMakeLists.txt +++ b/compiler-rt/lib/msan/CMakeLists.txt @@ -2,18 +2,19 @@ include_directories(..) # Runtime library sources and build flags. set(MSAN_RTL_SOURCES - msan.cc - msan_allocator.cc - msan_chained_origin_depot.cc - msan_interceptors.cc - msan_linux.cc - msan_report.cc - msan_thread.cc - msan_poisoning.cc + msan.cpp + msan_allocator.cpp + msan_chained_origin_depot.cpp + msan_interceptors.cpp + msan_linux.cpp + msan_report.cpp + msan_thread.cpp + msan_poisoning.cpp ) set(MSAN_RTL_CXX_SOURCES - msan_new_delete.cc) + msan_new_delete.cpp + ) set(MSAN_RTL_HEADERS msan.h diff --git a/compiler-rt/lib/msan/msan.cc b/compiler-rt/lib/msan/msan.cpp similarity index 99% rename from compiler-rt/lib/msan/msan.cc rename to compiler-rt/lib/msan/msan.cpp index c62e5cd4c518..1bc505e442cc 100644 --- a/compiler-rt/lib/msan/msan.cc +++ b/compiler-rt/lib/msan/msan.cpp @@ -1,4 +1,4 @@ -//===-- msan.cc -----------------------------------------------------------===// +//===-- msan.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/msan/msan_allocator.cc b/compiler-rt/lib/msan/msan_allocator.cpp similarity index 99% rename from compiler-rt/lib/msan/msan_allocator.cc rename to compiler-rt/lib/msan/msan_allocator.cpp index 1816840012e4..6aa4e2738075 100644 --- a/compiler-rt/lib/msan/msan_allocator.cc +++ b/compiler-rt/lib/msan/msan_allocator.cpp @@ -1,4 +1,4 @@ -//===-- msan_allocator.cc --------------------------- ---------------------===// +//===-- msan_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/msan/msan_chained_origin_depot.cc b/compiler-rt/lib/msan/msan_chained_origin_depot.cpp similarity index 98% rename from compiler-rt/lib/msan/msan_chained_origin_depot.cc rename to compiler-rt/lib/msan/msan_chained_origin_depot.cpp index 6c634252e0b1..d2897481a4b9 100644 --- a/compiler-rt/lib/msan/msan_chained_origin_depot.cc +++ b/compiler-rt/lib/msan/msan_chained_origin_depot.cpp @@ -1,4 +1,4 @@ -//===-- msan_chained_origin_depot.cc -----------------------------------===// +//===-- msan_chained_origin_depot.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/msan/msan_interceptors.cc b/compiler-rt/lib/msan/msan_interceptors.cpp similarity index 99% rename from compiler-rt/lib/msan/msan_interceptors.cc rename to compiler-rt/lib/msan/msan_interceptors.cpp index b055bb749cb8..41a5aa7676e9 100644 --- a/compiler-rt/lib/msan/msan_interceptors.cc +++ b/compiler-rt/lib/msan/msan_interceptors.cpp @@ -1,4 +1,4 @@ -//===-- msan_interceptors.cc ----------------------------------------------===// +//===-- msan_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/msan/msan_linux.cc b/compiler-rt/lib/msan/msan_linux.cpp similarity index 99% rename from compiler-rt/lib/msan/msan_linux.cc rename to compiler-rt/lib/msan/msan_linux.cpp index 056783088225..26a15a4bc1bc 100644 --- a/compiler-rt/lib/msan/msan_linux.cc +++ b/compiler-rt/lib/msan/msan_linux.cpp @@ -1,4 +1,4 @@ -//===-- msan_linux.cc -----------------------------------------------------===// +//===-- msan_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/msan/msan_new_delete.cc b/compiler-rt/lib/msan/msan_new_delete.cpp similarity index 98% rename from compiler-rt/lib/msan/msan_new_delete.cc rename to compiler-rt/lib/msan/msan_new_delete.cpp index 750981eb55eb..04b77d64d96f 100644 --- a/compiler-rt/lib/msan/msan_new_delete.cc +++ b/compiler-rt/lib/msan/msan_new_delete.cpp @@ -1,4 +1,4 @@ -//===-- msan_new_delete.cc ------------------------------------------------===// +//===-- msan_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. diff --git a/compiler-rt/lib/msan/msan_poisoning.cc b/compiler-rt/lib/msan/msan_poisoning.cpp similarity index 98% rename from compiler-rt/lib/msan/msan_poisoning.cc rename to compiler-rt/lib/msan/msan_poisoning.cpp index 5ea01f51a835..ef3c74e0a35a 100644 --- a/compiler-rt/lib/msan/msan_poisoning.cc +++ b/compiler-rt/lib/msan/msan_poisoning.cpp @@ -1,4 +1,4 @@ -//===-- msan_poisoning.cc ---------------------------------------*- C++ -*-===// +//===-- msan_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. diff --git a/compiler-rt/lib/msan/msan_report.cc b/compiler-rt/lib/msan/msan_report.cpp similarity index 99% rename from compiler-rt/lib/msan/msan_report.cc rename to compiler-rt/lib/msan/msan_report.cpp index 73bce3972593..e10d9eb62231 100644 --- a/compiler-rt/lib/msan/msan_report.cc +++ b/compiler-rt/lib/msan/msan_report.cpp @@ -1,4 +1,4 @@ -//===-- msan_report.cc ----------------------------------------------------===// +//===-- msan_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. diff --git a/compiler-rt/lib/msan/msan_thread.cc b/compiler-rt/lib/msan/msan_thread.cpp similarity index 100% rename from compiler-rt/lib/msan/msan_thread.cc rename to compiler-rt/lib/msan/msan_thread.cpp diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh index e616725ecf25..4545d09c6ff1 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh +++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh @@ -98,7 +98,7 @@ run_lint ${TSAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/tsan/*.cc & # MSan MSAN_RTL=${COMPILER_RT}/lib/msan -run_lint ${MSAN_RTL_LINT_FILTER} ${MSAN_RTL}/*.cc \ +run_lint ${MSAN_RTL_LINT_FILTER} ${MSAN_RTL}/*.cpp \ ${MSAN_RTL}/*.h & # LSan diff --git a/compiler-rt/test/msan/chained_origin_memcpy.cc b/compiler-rt/test/msan/chained_origin_memcpy.cc index 0c94f2b13f17..47a0effb3ccd 100644 --- a/compiler-rt/test/msan/chained_origin_memcpy.cc +++ b/compiler-rt/test/msan/chained_origin_memcpy.cc @@ -46,17 +46,17 @@ int main(int argc, char *argv[]) { } // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value -// CHECK: {{#0 .* in main .*chained_origin_memcpy.cc:}}[[@LINE-4]] +// CHECK: {{#0 .* in main .*chained_origin_memcpy.cpp:}}[[@LINE-4]] // CHECK: Uninitialized value was stored to memory at -// CHECK-FULL-STACK: {{#1 .* in fn_h.*chained_origin_memcpy.cc:}}[[@LINE-15]] -// CHECK-SHORT-STACK: {{#0 .* in __msan_memcpy.*msan_interceptors.cc:}} +// CHECK-FULL-STACK: {{#1 .* in fn_h.*chained_origin_memcpy.cpp:}}[[@LINE-15]] +// CHECK-SHORT-STACK: {{#0 .* in __msan_memcpy.*msan_interceptors.cpp:}} // CHECK: Uninitialized value was stored to memory at -// CHECK-FULL-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cc:}}[[@LINE-29]] -// CHECK-FULL-STACK: {{#1 .* in fn_f.*chained_origin_memcpy.cc:}}[[@LINE-25]] -// CHECK-SHORT-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cc:}}[[@LINE-31]] +// CHECK-FULL-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cpp:}}[[@LINE-29]] +// CHECK-FULL-STACK: {{#1 .* in fn_f.*chained_origin_memcpy.cpp:}}[[@LINE-25]] +// CHECK-SHORT-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cpp:}}[[@LINE-31]] // CHECK-Z1: Uninitialized value was created by an allocation of 'z1' in the stack frame of function 'main' // CHECK-Z2: Uninitialized value was created by an allocation of 'z2' in the stack frame of function 'main' -// CHECK: {{#0 .* in main.*chained_origin_memcpy.cc:}}[[@LINE-22]] +// CHECK: {{#0 .* in main.*chained_origin_memcpy.cpp:}}[[@LINE-22]] diff --git a/compiler-rt/test/msan/msan_copy_shadow.cc b/compiler-rt/test/msan/msan_copy_shadow.cc index 19da73810509..a3ec39ca1086 100644 --- a/compiler-rt/test/msan/msan_copy_shadow.cc +++ b/compiler-rt/test/msan/msan_copy_shadow.cc @@ -26,10 +26,10 @@ int main() { assert(__msan_test_shadow(b + 3, 1) == -1); __msan_check_mem_is_initialized(b, 4); // CHECK: use-of-uninitialized-value - // CHECK: {{in main.*msan_copy_shadow.cc:}}[[@LINE-2]] + // CHECK: {{in main.*msan_copy_shadow.cpp:}}[[@LINE-2]] // CHECK: Uninitialized value was stored to memory at - // CHECK-FULL-STACK: {{in main.*msan_copy_shadow.cc:}}[[@LINE-8]] - // CHECK-SHORT-STACK: {{in __msan_copy_shadow .*msan_interceptors.cc:}} + // CHECK-FULL-STACK: {{in main.*msan_copy_shadow.cpp:}}[[@LINE-8]] + // CHECK-SHORT-STACK: {{in __msan_copy_shadow .*msan_interceptors.cpp:}} // CHECK: Uninitialized value was created by a heap allocation - // CHECK: {{in main.*msan_copy_shadow.cc:}}[[@LINE-23]] + // CHECK: {{in main.*msan_copy_shadow.cpp:}}[[@LINE-23]] }