Skip to content

Commit 60c66db

Browse files
committed
compiler-rt: Rename .cc file in lib/msan to .cpp
Like r367463, but for msan. llvm-svn: 367562
1 parent ae1fc9b commit 60c66db

13 files changed

+30
-29
lines changed

compiler-rt/lib/msan/CMakeLists.txt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ include_directories(..)
22

33
# Runtime library sources and build flags.
44
set(MSAN_RTL_SOURCES
5-
msan.cc
6-
msan_allocator.cc
7-
msan_chained_origin_depot.cc
8-
msan_interceptors.cc
9-
msan_linux.cc
10-
msan_report.cc
11-
msan_thread.cc
12-
msan_poisoning.cc
5+
msan.cpp
6+
msan_allocator.cpp
7+
msan_chained_origin_depot.cpp
8+
msan_interceptors.cpp
9+
msan_linux.cpp
10+
msan_report.cpp
11+
msan_thread.cpp
12+
msan_poisoning.cpp
1313
)
1414

1515
set(MSAN_RTL_CXX_SOURCES
16-
msan_new_delete.cc)
16+
msan_new_delete.cpp
17+
)
1718

1819
set(MSAN_RTL_HEADERS
1920
msan.h

compiler-rt/lib/msan/msan.cc renamed to compiler-rt/lib/msan/msan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- msan.cc -----------------------------------------------------------===//
1+
//===-- msan.cpp ----------------------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

compiler-rt/lib/msan/msan_allocator.cc renamed to compiler-rt/lib/msan/msan_allocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- msan_allocator.cc --------------------------- ---------------------===//
1+
//===-- msan_allocator.cpp -------------------------- ---------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

compiler-rt/lib/msan/msan_chained_origin_depot.cc renamed to compiler-rt/lib/msan/msan_chained_origin_depot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- msan_chained_origin_depot.cc -----------------------------------===//
1+
//===-- msan_chained_origin_depot.cpp ----------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

compiler-rt/lib/msan/msan_interceptors.cc renamed to compiler-rt/lib/msan/msan_interceptors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- msan_interceptors.cc ----------------------------------------------===//
1+
//===-- msan_interceptors.cpp ---------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

compiler-rt/lib/msan/msan_linux.cc renamed to compiler-rt/lib/msan/msan_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- msan_linux.cc -----------------------------------------------------===//
1+
//===-- msan_linux.cpp ----------------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

compiler-rt/lib/msan/msan_new_delete.cc renamed to compiler-rt/lib/msan/msan_new_delete.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- msan_new_delete.cc ------------------------------------------------===//
1+
//===-- msan_new_delete.cpp -----------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

compiler-rt/lib/msan/msan_poisoning.cc renamed to compiler-rt/lib/msan/msan_poisoning.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- msan_poisoning.cc ---------------------------------------*- C++ -*-===//
1+
//===-- msan_poisoning.cpp --------------------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

compiler-rt/lib/msan/msan_report.cc renamed to compiler-rt/lib/msan/msan_report.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- msan_report.cc ----------------------------------------------------===//
1+
//===-- msan_report.cpp ---------------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

compiler-rt/lib/sanitizer_common/scripts/check_lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ run_lint ${TSAN_LIT_TEST_LINT_FILTER} ${LIT_TESTS}/tsan/*.cc &
9898

9999
# MSan
100100
MSAN_RTL=${COMPILER_RT}/lib/msan
101-
run_lint ${MSAN_RTL_LINT_FILTER} ${MSAN_RTL}/*.cc \
101+
run_lint ${MSAN_RTL_LINT_FILTER} ${MSAN_RTL}/*.cpp \
102102
${MSAN_RTL}/*.h &
103103

104104
# LSan

compiler-rt/test/msan/chained_origin_memcpy.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ int main(int argc, char *argv[]) {
4646
}
4747

4848
// CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value
49-
// CHECK: {{#0 .* in main .*chained_origin_memcpy.cc:}}[[@LINE-4]]
49+
// CHECK: {{#0 .* in main .*chained_origin_memcpy.cpp:}}[[@LINE-4]]
5050

5151
// CHECK: Uninitialized value was stored to memory at
52-
// CHECK-FULL-STACK: {{#1 .* in fn_h.*chained_origin_memcpy.cc:}}[[@LINE-15]]
53-
// CHECK-SHORT-STACK: {{#0 .* in __msan_memcpy.*msan_interceptors.cc:}}
52+
// CHECK-FULL-STACK: {{#1 .* in fn_h.*chained_origin_memcpy.cpp:}}[[@LINE-15]]
53+
// CHECK-SHORT-STACK: {{#0 .* in __msan_memcpy.*msan_interceptors.cpp:}}
5454

5555
// CHECK: Uninitialized value was stored to memory at
56-
// CHECK-FULL-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cc:}}[[@LINE-29]]
57-
// CHECK-FULL-STACK: {{#1 .* in fn_f.*chained_origin_memcpy.cc:}}[[@LINE-25]]
58-
// CHECK-SHORT-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cc:}}[[@LINE-31]]
56+
// CHECK-FULL-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cpp:}}[[@LINE-29]]
57+
// CHECK-FULL-STACK: {{#1 .* in fn_f.*chained_origin_memcpy.cpp:}}[[@LINE-25]]
58+
// CHECK-SHORT-STACK: {{#0 .* in fn_g.*chained_origin_memcpy.cpp:}}[[@LINE-31]]
5959

6060
// CHECK-Z1: Uninitialized value was created by an allocation of 'z1' in the stack frame of function 'main'
6161
// CHECK-Z2: Uninitialized value was created by an allocation of 'z2' in the stack frame of function 'main'
62-
// CHECK: {{#0 .* in main.*chained_origin_memcpy.cc:}}[[@LINE-22]]
62+
// CHECK: {{#0 .* in main.*chained_origin_memcpy.cpp:}}[[@LINE-22]]

compiler-rt/test/msan/msan_copy_shadow.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ int main() {
2626
assert(__msan_test_shadow(b + 3, 1) == -1);
2727
__msan_check_mem_is_initialized(b, 4);
2828
// CHECK: use-of-uninitialized-value
29-
// CHECK: {{in main.*msan_copy_shadow.cc:}}[[@LINE-2]]
29+
// CHECK: {{in main.*msan_copy_shadow.cpp:}}[[@LINE-2]]
3030
// CHECK: Uninitialized value was stored to memory at
31-
// CHECK-FULL-STACK: {{in main.*msan_copy_shadow.cc:}}[[@LINE-8]]
32-
// CHECK-SHORT-STACK: {{in __msan_copy_shadow .*msan_interceptors.cc:}}
31+
// CHECK-FULL-STACK: {{in main.*msan_copy_shadow.cpp:}}[[@LINE-8]]
32+
// CHECK-SHORT-STACK: {{in __msan_copy_shadow .*msan_interceptors.cpp:}}
3333
// CHECK: Uninitialized value was created by a heap allocation
34-
// CHECK: {{in main.*msan_copy_shadow.cc:}}[[@LINE-23]]
34+
// CHECK: {{in main.*msan_copy_shadow.cpp:}}[[@LINE-23]]
3535
}

0 commit comments

Comments
 (0)