diff options
-rw-r--r-- | compiler-rt/lib/ubsan/CMakeLists.txt | 38 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_diag.cpp (renamed from compiler-rt/lib/ubsan/ubsan_diag.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_diag_standalone.cpp (renamed from compiler-rt/lib/ubsan/ubsan_diag_standalone.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_flags.cpp (renamed from compiler-rt/lib/ubsan/ubsan_flags.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_handlers.cpp (renamed from compiler-rt/lib/ubsan/ubsan_handlers.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_handlers_cxx.cpp (renamed from compiler-rt/lib/ubsan/ubsan_handlers_cxx.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_init.cpp (renamed from compiler-rt/lib/ubsan/ubsan_init.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_init_standalone.cpp (renamed from compiler-rt/lib/ubsan/ubsan_init_standalone.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_init_standalone_preinit.cpp (renamed from compiler-rt/lib/ubsan/ubsan_init_standalone_preinit.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_monitor.cpp (renamed from compiler-rt/lib/ubsan/ubsan_monitor.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_signals_standalone.cpp (renamed from compiler-rt/lib/ubsan/ubsan_signals_standalone.cc) | 3 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_type_hash.cpp (renamed from compiler-rt/lib/ubsan/ubsan_type_hash.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp (renamed from compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_type_hash_win.cpp (renamed from compiler-rt/lib/ubsan/ubsan_type_hash_win.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_value.cpp (renamed from compiler-rt/lib/ubsan/ubsan_value.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_win_dll_thunk.cpp (renamed from compiler-rt/lib/ubsan/ubsan_win_dll_thunk.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_win_dynamic_runtime_thunk.cpp (renamed from compiler-rt/lib/ubsan/ubsan_win_dynamic_runtime_thunk.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/ubsan_win_weak_interception.cpp (renamed from compiler-rt/lib/ubsan/ubsan_win_weak_interception.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp | 2 |
19 files changed, 37 insertions, 38 deletions
diff --git a/compiler-rt/lib/ubsan/CMakeLists.txt b/compiler-rt/lib/ubsan/CMakeLists.txt index 49a3aa121c7..378cbac6a31 100644 --- a/compiler-rt/lib/ubsan/CMakeLists.txt +++ b/compiler-rt/lib/ubsan/CMakeLists.txt @@ -1,25 +1,25 @@ # Build for the undefined behavior sanitizer runtime support library. set(UBSAN_SOURCES - ubsan_diag.cc - ubsan_init.cc - ubsan_flags.cc - ubsan_handlers.cc - ubsan_monitor.cc - ubsan_value.cc + ubsan_diag.cpp + ubsan_init.cpp + ubsan_flags.cpp + ubsan_handlers.cpp + ubsan_monitor.cpp + ubsan_value.cpp ) set(UBSAN_STANDALONE_SOURCES - ubsan_diag_standalone.cc - ubsan_init_standalone.cc - ubsan_signals_standalone.cc + ubsan_diag_standalone.cpp + ubsan_init_standalone.cpp + ubsan_signals_standalone.cpp ) set(UBSAN_CXXABI_SOURCES - ubsan_handlers_cxx.cc - ubsan_type_hash.cc - ubsan_type_hash_itanium.cc - ubsan_type_hash_win.cc + ubsan_handlers_cxx.cpp + ubsan_type_hash.cpp + ubsan_type_hash_itanium.cpp + ubsan_type_hash_win.cpp ) set(UBSAN_HEADERS @@ -129,8 +129,8 @@ else() set(UBSAN_CXX_SOURCES ${UBSAN_CXXABI_SOURCES}) else() # Dummy target if we don't have C++ ABI library. - file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/cxx_dummy.cc "") - set(UBSAN_CXX_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/cxx_dummy.cc) + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/cxx_dummy.cpp "") + set(UBSAN_CXX_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/cxx_dummy.cpp) endif() add_compiler_rt_object_libraries(RTUbsan_cxx @@ -143,14 +143,14 @@ else() add_compiler_rt_object_libraries(UbsanWeakInterception ${SANITIZER_COMMON_SUPPORTED_OS} ARCHS ${UBSAN_SUPPORTED_ARCH} - SOURCES ubsan_win_weak_interception.cc + SOURCES ubsan_win_weak_interception.cpp CFLAGS ${UBSAN_CFLAGS} -DSANITIZER_DYNAMIC DEFS ${UBSAN_COMMON_DEFINITIONS}) add_compiler_rt_object_libraries(UbsanDllThunk ${SANITIZER_COMMON_SUPPORTED_OS} ARCHS ${UBSAN_SUPPORTED_ARCH} - SOURCES ubsan_win_dll_thunk.cc + SOURCES ubsan_win_dll_thunk.cpp CFLAGS ${UBSAN_CFLAGS} -DSANITIZER_DLL_THUNK DEFS ${UBSAN_COMMON_DEFINITIONS}) @@ -163,7 +163,7 @@ else() add_compiler_rt_object_libraries(UbsanDynamicRuntimeThunk ${SANITIZER_COMMON_SUPPORTED_OS} ARCHS ${UBSAN_SUPPORTED_ARCH} - SOURCES ubsan_win_dynamic_runtime_thunk.cc + SOURCES ubsan_win_dynamic_runtime_thunk.cpp CFLAGS ${UBSAN_CFLAGS} ${DYNAMIC_RUNTIME_THUNK_CFLAGS} DEFS ${UBSAN_COMMON_DEFINITIONS}) endif() @@ -179,7 +179,7 @@ else() add_compiler_rt_runtime(clang_rt.ubsan_standalone STATIC ARCHS ${UBSAN_SUPPORTED_ARCH} - SOURCES ubsan_init_standalone_preinit.cc + SOURCES ubsan_init_standalone_preinit.cpp ADDITIONAL_HEADERS ${UBSAN_HEADERS} OBJECT_LIBS RTSanitizerCommon RTSanitizerCommonLibc diff --git a/compiler-rt/lib/ubsan/ubsan_diag.cc b/compiler-rt/lib/ubsan/ubsan_diag.cpp index 529cc698576..c8f7960db42 100644 --- a/compiler-rt/lib/ubsan/ubsan_diag.cc +++ b/compiler-rt/lib/ubsan/ubsan_diag.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_diag.cc -----------------------------------------------------===// +//===-- ubsan_diag.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/ubsan/ubsan_diag_standalone.cc b/compiler-rt/lib/ubsan/ubsan_diag_standalone.cpp index c22fd174997..300179adae2 100644 --- a/compiler-rt/lib/ubsan/ubsan_diag_standalone.cc +++ b/compiler-rt/lib/ubsan/ubsan_diag_standalone.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_diag_standalone.cc ------------------------------------------===// +//===-- ubsan_diag_standalone.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/ubsan/ubsan_flags.cc b/compiler-rt/lib/ubsan/ubsan_flags.cpp index 8a949801193..80de2a6d101 100644 --- a/compiler-rt/lib/ubsan/ubsan_flags.cc +++ b/compiler-rt/lib/ubsan/ubsan_flags.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_flags.cc ----------------------------------------------------===// +//===-- ubsan_flags.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/ubsan/ubsan_handlers.cc b/compiler-rt/lib/ubsan/ubsan_handlers.cpp index 938ac89750f..e832581f9dc 100644 --- a/compiler-rt/lib/ubsan/ubsan_handlers.cc +++ b/compiler-rt/lib/ubsan/ubsan_handlers.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_handlers.cc -------------------------------------------------===// +//===-- ubsan_handlers.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/ubsan/ubsan_handlers_cxx.cc b/compiler-rt/lib/ubsan/ubsan_handlers_cxx.cpp index 9c324cc19a1..2a6d558de03 100644 --- a/compiler-rt/lib/ubsan/ubsan_handlers_cxx.cc +++ b/compiler-rt/lib/ubsan/ubsan_handlers_cxx.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_handlers_cxx.cc ---------------------------------------------===// +//===-- ubsan_handlers_cxx.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/ubsan/ubsan_init.cc b/compiler-rt/lib/ubsan/ubsan_init.cpp index f0bbe1ef107..1a3b7d37267 100644 --- a/compiler-rt/lib/ubsan/ubsan_init.cc +++ b/compiler-rt/lib/ubsan/ubsan_init.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_init.cc -----------------------------------------------------===// +//===-- ubsan_init.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/ubsan/ubsan_init_standalone.cc b/compiler-rt/lib/ubsan/ubsan_init_standalone.cpp index 323c2c1f9a4..91c3f57b424 100644 --- a/compiler-rt/lib/ubsan/ubsan_init_standalone.cc +++ b/compiler-rt/lib/ubsan/ubsan_init_standalone.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_init_standalone.cc ------------------------------------------===// +//===-- ubsan_init_standalone.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/ubsan/ubsan_init_standalone_preinit.cc b/compiler-rt/lib/ubsan/ubsan_init_standalone_preinit.cpp index bf344a2a9fc..fabbf919a40 100644 --- a/compiler-rt/lib/ubsan/ubsan_init_standalone_preinit.cc +++ b/compiler-rt/lib/ubsan/ubsan_init_standalone_preinit.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_init_standalone_preinit.cc ---------------------------------===// +//===-- ubsan_init_standalone_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. diff --git a/compiler-rt/lib/ubsan/ubsan_monitor.cc b/compiler-rt/lib/ubsan/ubsan_monitor.cpp index cb97a8ff1b8..d064e95f76f 100644 --- a/compiler-rt/lib/ubsan/ubsan_monitor.cc +++ b/compiler-rt/lib/ubsan/ubsan_monitor.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_monitor.cc ----------------------------------------*- C++ -*-===// +//===-- ubsan_monitor.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/ubsan/ubsan_signals_standalone.cc b/compiler-rt/lib/ubsan/ubsan_signals_standalone.cpp index cc7900cb136..627b3c4d89b 100644 --- a/compiler-rt/lib/ubsan/ubsan_signals_standalone.cc +++ b/compiler-rt/lib/ubsan/ubsan_signals_standalone.cpp @@ -1,5 +1,4 @@ -//=-- ubsan_signals_standalone.cc -//------------------------------------------------===// +//=-- ubsan_signals_standalone.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/ubsan/ubsan_type_hash.cc b/compiler-rt/lib/ubsan/ubsan_type_hash.cpp index 431495672b5..44a5065485f 100644 --- a/compiler-rt/lib/ubsan/ubsan_type_hash.cc +++ b/compiler-rt/lib/ubsan/ubsan_type_hash.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_type_hash.cc ------------------------------------------------===// +//===-- ubsan_type_hash.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/ubsan/ubsan_type_hash_itanium.cc b/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp index c4b048f20a8..97846d4dd43 100644 --- a/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cc +++ b/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_type_hash_itanium.cc ----------------------------------------===// +//===-- ubsan_type_hash_itanium.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/ubsan/ubsan_type_hash_win.cc b/compiler-rt/lib/ubsan/ubsan_type_hash_win.cpp index c7b2e45af4e..45dcb758ec4 100644 --- a/compiler-rt/lib/ubsan/ubsan_type_hash_win.cc +++ b/compiler-rt/lib/ubsan/ubsan_type_hash_win.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_type_hash_win.cc --------------------------------------------===// +//===-- ubsan_type_hash_win.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/ubsan/ubsan_value.cc b/compiler-rt/lib/ubsan/ubsan_value.cpp index ba336a6673c..60f0b5c9934 100644 --- a/compiler-rt/lib/ubsan/ubsan_value.cc +++ b/compiler-rt/lib/ubsan/ubsan_value.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_value.cc ----------------------------------------------------===// +//===-- ubsan_value.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/ubsan/ubsan_win_dll_thunk.cc b/compiler-rt/lib/ubsan/ubsan_win_dll_thunk.cpp index fd39e210af0..5ac7fc3e08e 100644 --- a/compiler-rt/lib/ubsan/ubsan_win_dll_thunk.cc +++ b/compiler-rt/lib/ubsan/ubsan_win_dll_thunk.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_win_dll_thunk.cc --------------------------------------------===// +//===-- ubsan_win_dll_thunk.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/ubsan/ubsan_win_dynamic_runtime_thunk.cc b/compiler-rt/lib/ubsan/ubsan_win_dynamic_runtime_thunk.cpp index 87ada6131cd..00722b4033a 100644 --- a/compiler-rt/lib/ubsan/ubsan_win_dynamic_runtime_thunk.cc +++ b/compiler-rt/lib/ubsan/ubsan_win_dynamic_runtime_thunk.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_win_dynamic_runtime_thunk.cc --------------------------------===// +//===-- ubsan_win_dynamic_runtime_thunk.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/ubsan/ubsan_win_weak_interception.cc b/compiler-rt/lib/ubsan/ubsan_win_weak_interception.cpp index 8cf6344ce1d..01db0c0ce78 100644 --- a/compiler-rt/lib/ubsan/ubsan_win_weak_interception.cc +++ b/compiler-rt/lib/ubsan/ubsan_win_weak_interception.cpp @@ -1,4 +1,4 @@ -//===-- ubsan_win_weak_interception.cc ------------------------------------===// +//===-- ubsan_win_weak_interception.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/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp b/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp index fd1e7ed779a..0e3d0d8592a 100644 --- a/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp +++ b/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtable-itanium.cpp @@ -13,7 +13,7 @@ struct S { virtual int v() { return 0; } }; -// See the proper definition in ubsan_type_hash_itanium.cc +// See the proper definition in ubsan_type_hash_itanium.cpp struct VtablePrefix { signed long Offset; std::type_info *TypeInfo; |