forked from OSchip/llvm-project
compiler-rt: Rename .cc file in lib/msan to .cpp
Like r367463, but for msan. llvm-svn: 367562
This commit is contained in:
parent
ae1fc9baae
commit
60c66db476
|
@ -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
|
||||
|
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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
|
||||
|
|
|
@ -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]]
|
||||
|
|
|
@ -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]]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue