diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-08-01 13:43:28 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-08-01 13:43:28 +0000 |
commit | 217222abea19f7bc96e4a9f61df4a9e7599c329f (patch) | |
tree | 817398b8d81d821ca15ce3de61fa242060bacd6b | |
parent | f46d413fa0a9a9ceffc01fd16b1cb504c78a0508 (diff) | |
download | bcm5719-llvm-217222abea19f7bc96e4a9f61df4a9e7599c329f.tar.gz bcm5719-llvm-217222abea19f7bc96e4a9f61df4a9e7599c329f.zip |
compiler-rt: Rename .cc file in lib/asan to .cpp
Like r367463, but for asan.
llvm-svn: 367558
-rw-r--r-- | compiler-rt/lib/asan/CMakeLists.txt | 90 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_activation.cpp (renamed from compiler-rt/lib/asan/asan_activation.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_allocator.cpp (renamed from compiler-rt/lib/asan/asan_allocator.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_allocator.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_debugging.cpp (renamed from compiler-rt/lib/asan/asan_debugging.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_descriptions.cpp (renamed from compiler-rt/lib/asan/asan_descriptions.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_descriptions.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_errors.cpp (renamed from compiler-rt/lib/asan/asan_errors.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_fake_stack.cpp (renamed from compiler-rt/lib/asan/asan_fake_stack.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_fake_stack.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_flags.cpp (renamed from compiler-rt/lib/asan/asan_flags.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_fuchsia.cpp (renamed from compiler-rt/lib/asan/asan_fuchsia.cc) | 6 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_globals.cpp (renamed from compiler-rt/lib/asan/asan_globals.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_globals_win.cpp (renamed from compiler-rt/lib/asan/asan_globals_win.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_interceptors.cpp (renamed from compiler-rt/lib/asan/asan_interceptors.cc) | 4 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_interceptors.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp (renamed from compiler-rt/lib/asan/asan_interceptors_memintrinsics.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_internal.h | 12 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_linux.cpp (renamed from compiler-rt/lib/asan/asan_linux.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_mac.cpp (renamed from compiler-rt/lib/asan/asan_mac.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_malloc_linux.cpp (renamed from compiler-rt/lib/asan/asan_malloc_linux.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_malloc_mac.cpp (renamed from compiler-rt/lib/asan/asan_malloc_mac.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_malloc_win.cpp (renamed from compiler-rt/lib/asan/asan_malloc_win.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_memory_profile.cpp (renamed from compiler-rt/lib/asan/asan_memory_profile.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_new_delete.cpp (renamed from compiler-rt/lib/asan/asan_new_delete.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_poisoning.cpp (renamed from compiler-rt/lib/asan/asan_poisoning.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_posix.cpp (renamed from compiler-rt/lib/asan/asan_posix.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_preinit.cpp (renamed from compiler-rt/lib/asan/asan_preinit.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_premap_shadow.cpp (renamed from compiler-rt/lib/asan/asan_premap_shadow.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_report.cpp (renamed from compiler-rt/lib/asan/asan_report.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_rtems.cpp (renamed from compiler-rt/lib/asan/asan_rtems.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_rtl.cpp (renamed from compiler-rt/lib/asan/asan_rtl.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_shadow_setup.cpp (renamed from compiler-rt/lib/asan/asan_shadow_setup.cc) | 4 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_stack.cpp (renamed from compiler-rt/lib/asan/asan_stack.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_stack.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_stats.cpp (renamed from compiler-rt/lib/asan/asan_stats.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_suppressions.cpp (renamed from compiler-rt/lib/asan/asan_suppressions.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_suppressions.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_thread.cpp (renamed from compiler-rt/lib/asan/asan_thread.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_thread.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_win.cpp (renamed from compiler-rt/lib/asan/asan_win.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_win_dll_thunk.cpp (renamed from compiler-rt/lib/asan/asan_win_dll_thunk.cc) | 4 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cpp (renamed from compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc) | 4 | ||||
-rw-r--r-- | compiler-rt/lib/asan/asan_win_weak_interception.cpp (renamed from compiler-rt/lib/asan/asan_win_weak_interception.cc) | 2 | ||||
-rwxr-xr-x | compiler-rt/lib/sanitizer_common/scripts/check_lint.sh | 2 | ||||
-rw-r--r-- | compiler-rt/test/asan/TestCases/Windows/dll_host.cc | 6 |
46 files changed, 106 insertions, 100 deletions
diff --git a/compiler-rt/lib/asan/CMakeLists.txt b/compiler-rt/lib/asan/CMakeLists.txt index 3c443469031..2a1bbb58cce 100644 --- a/compiler-rt/lib/asan/CMakeLists.txt +++ b/compiler-rt/lib/asan/CMakeLists.txt @@ -1,46 +1,51 @@ # Build for the AddressSanitizer runtime support library. set(ASAN_SOURCES - asan_allocator.cc - asan_activation.cc - asan_debugging.cc - asan_descriptions.cc - asan_errors.cc - asan_fake_stack.cc - asan_flags.cc - asan_fuchsia.cc - asan_globals.cc - asan_globals_win.cc - asan_interceptors.cc - asan_interceptors_memintrinsics.cc - asan_linux.cc - asan_mac.cc - asan_malloc_linux.cc - asan_malloc_mac.cc - asan_malloc_win.cc - asan_memory_profile.cc - asan_poisoning.cc - asan_posix.cc - asan_premap_shadow.cc - asan_report.cc - asan_rtems.cc - asan_rtl.cc - asan_shadow_setup.cc - asan_stack.cc - asan_stats.cc - asan_suppressions.cc - asan_thread.cc - asan_win.cc) + asan_allocator.cpp + asan_activation.cpp + asan_debugging.cpp + asan_descriptions.cpp + asan_errors.cpp + asan_fake_stack.cpp + asan_flags.cpp + asan_fuchsia.cpp + asan_globals.cpp + asan_globals_win.cpp + asan_interceptors.cpp + asan_interceptors_memintrinsics.cpp + asan_linux.cpp + asan_mac.cpp + asan_malloc_linux.cpp + asan_malloc_mac.cpp + asan_malloc_win.cpp + asan_memory_profile.cpp + asan_poisoning.cpp + asan_posix.cpp + asan_premap_shadow.cpp + asan_report.cpp + asan_rtems.cpp + asan_rtl.cpp + asan_shadow_setup.cpp + asan_stack.cpp + asan_stats.cpp + asan_suppressions.cpp + asan_thread.cpp + asan_win.cpp + ) if (NOT WIN32 AND NOT APPLE) - list(APPEND ASAN_SOURCES asan_interceptors_vfork.S) + list(APPEND ASAN_SOURCES + asan_interceptors_vfork.S + ) endif() set(ASAN_CXX_SOURCES - asan_new_delete.cc) + asan_new_delete.cpp + ) set(ASAN_PREINIT_SOURCES - asan_preinit.cc) + asan_preinit.cpp + ) SET(ASAN_HEADERS asan_activation.h @@ -68,7 +73,8 @@ SET(ASAN_HEADERS asan_stack.h asan_stats.h asan_suppressions.h - asan_thread.h) + asan_thread.h + ) include_directories(..) @@ -143,10 +149,10 @@ if(NOT APPLE) DEFS ${ASAN_COMMON_DEFINITIONS} DEPS ${ASAN_DEPS}) - file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cc "") + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp "") add_compiler_rt_object_libraries(RTAsan_dynamic_version_script_dummy ARCHS ${ASAN_SUPPORTED_ARCH} - SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cc + SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp CFLAGS ${ASAN_DYNAMIC_CFLAGS} DEFS ${ASAN_DYNAMIC_DEFINITIONS} DEPS ${ASAN_DEPS}) @@ -230,7 +236,7 @@ else() list(APPEND VERSION_SCRIPT_FLAG -Wl,-z,gnu-version-script-compat) endif() set_property(SOURCE - ${CMAKE_CURRENT_BINARY_DIR}/dummy.cc + ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/clang_rt.asan-dynamic-${arch}.vers) else() @@ -242,7 +248,7 @@ else() add_compiler_rt_object_libraries(AsanWeakInterception ${SANITIZER_COMMON_SUPPORTED_OS} ARCHS ${arch} - SOURCES asan_win_weak_interception.cc + SOURCES asan_win_weak_interception.cpp CFLAGS ${ASAN_CFLAGS} -DSANITIZER_DYNAMIC DEFS ${ASAN_COMMON_DEFINITIONS} DEPS ${ASAN_DEPS}) @@ -287,8 +293,8 @@ else() add_compiler_rt_object_libraries(AsanDllThunk ${SANITIZER_COMMON_SUPPORTED_OS} ARCHS ${arch} - SOURCES asan_globals_win.cc - asan_win_dll_thunk.cc + SOURCES asan_globals_win.cpp + asan_win_dll_thunk.cpp CFLAGS ${ASAN_CFLAGS} -DSANITIZER_DLL_THUNK DEFS ${ASAN_COMMON_DEFINITIONS} DEPS ${ASAN_DEPS}) @@ -313,8 +319,8 @@ else() add_compiler_rt_object_libraries(AsanDynamicRuntimeThunk ${SANITIZER_COMMON_SUPPORTED_OS} ARCHS ${arch} - SOURCES asan_globals_win.cc - asan_win_dynamic_runtime_thunk.cc + SOURCES asan_globals_win.cpp + asan_win_dynamic_runtime_thunk.cpp CFLAGS ${ASAN_CFLAGS} ${DYNAMIC_RUNTIME_THUNK_CFLAGS} DEFS ${ASAN_COMMON_DEFINITIONS} DEPS ${ASAN_DEPS}) diff --git a/compiler-rt/lib/asan/asan_activation.cc b/compiler-rt/lib/asan/asan_activation.cpp index fc97cbb554d..795df95a541 100644 --- a/compiler-rt/lib/asan/asan_activation.cc +++ b/compiler-rt/lib/asan/asan_activation.cpp @@ -1,4 +1,4 @@ -//===-- asan_activation.cc --------------------------------------*- C++ -*-===// +//===-- asan_activation.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/asan/asan_allocator.cc b/compiler-rt/lib/asan/asan_allocator.cpp index 2ca6220d8fd..b58116e17b7 100644 --- a/compiler-rt/lib/asan/asan_allocator.cc +++ b/compiler-rt/lib/asan/asan_allocator.cpp @@ -1,4 +1,4 @@ -//===-- asan_allocator.cc -------------------------------------------------===// +//===-- asan_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/asan/asan_allocator.h b/compiler-rt/lib/asan/asan_allocator.h index 6add47be2c9..b37d8ef4e8d 100644 --- a/compiler-rt/lib/asan/asan_allocator.h +++ b/compiler-rt/lib/asan/asan_allocator.h @@ -8,7 +8,7 @@ // // This file is a part of AddressSanitizer, an address sanity checker. // -// ASan-private header for asan_allocator.cc. +// ASan-private header for asan_allocator.cpp. //===----------------------------------------------------------------------===// #ifndef ASAN_ALLOCATOR_H diff --git a/compiler-rt/lib/asan/asan_debugging.cc b/compiler-rt/lib/asan/asan_debugging.cpp index 7052a371e67..3fc15adf7b8 100644 --- a/compiler-rt/lib/asan/asan_debugging.cc +++ b/compiler-rt/lib/asan/asan_debugging.cpp @@ -1,4 +1,4 @@ -//===-- asan_debugging.cc -------------------------------------------------===// +//===-- asan_debugging.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/asan/asan_descriptions.cc b/compiler-rt/lib/asan/asan_descriptions.cpp index 9b1217a8665..153c874a4e7 100644 --- a/compiler-rt/lib/asan/asan_descriptions.cc +++ b/compiler-rt/lib/asan/asan_descriptions.cpp @@ -1,4 +1,4 @@ -//===-- asan_descriptions.cc ------------------------------------*- C++ -*-===// +//===-- asan_descriptions.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/asan/asan_descriptions.h b/compiler-rt/lib/asan/asan_descriptions.h index 0226d844afc..28b38100b85 100644 --- a/compiler-rt/lib/asan/asan_descriptions.h +++ b/compiler-rt/lib/asan/asan_descriptions.h @@ -8,7 +8,7 @@ // // This file is a part of AddressSanitizer, an address sanity checker. // -// ASan-private header for asan_descriptions.cc. +// ASan-private header for asan_descriptions.cpp. // TODO(filcab): Most struct definitions should move to the interface headers. //===----------------------------------------------------------------------===// #ifndef ASAN_DESCRIPTIONS_H diff --git a/compiler-rt/lib/asan/asan_errors.cc b/compiler-rt/lib/asan/asan_errors.cpp index d598e37b940..75ee996ceef 100644 --- a/compiler-rt/lib/asan/asan_errors.cc +++ b/compiler-rt/lib/asan/asan_errors.cpp @@ -1,4 +1,4 @@ -//===-- asan_errors.cc ------------------------------------------*- C++ -*-===// +//===-- asan_errors.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/asan/asan_fake_stack.cc b/compiler-rt/lib/asan/asan_fake_stack.cpp index f8e1ac4b7bf..295e6debc96 100644 --- a/compiler-rt/lib/asan/asan_fake_stack.cc +++ b/compiler-rt/lib/asan/asan_fake_stack.cpp @@ -1,4 +1,4 @@ -//===-- asan_fake_stack.cc ------------------------------------------------===// +//===-- asan_fake_stack.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/asan/asan_fake_stack.h b/compiler-rt/lib/asan/asan_fake_stack.h index 59ba85218f8..270a19816d6 100644 --- a/compiler-rt/lib/asan/asan_fake_stack.h +++ b/compiler-rt/lib/asan/asan_fake_stack.h @@ -8,7 +8,7 @@ // // This file is a part of AddressSanitizer, an address sanity checker. // -// ASan-private header for asan_fake_stack.cc, implements FakeStack. +// ASan-private header for asan_fake_stack.cpp, implements FakeStack. //===----------------------------------------------------------------------===// #ifndef ASAN_FAKE_STACK_H diff --git a/compiler-rt/lib/asan/asan_flags.cc b/compiler-rt/lib/asan/asan_flags.cpp index 89e98936129..c5c70eaed73 100644 --- a/compiler-rt/lib/asan/asan_flags.cc +++ b/compiler-rt/lib/asan/asan_flags.cpp @@ -1,4 +1,4 @@ -//===-- asan_flags.cc -------------------------------------------*- C++ -*-===// +//===-- asan_flags.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/asan/asan_fuchsia.cc b/compiler-rt/lib/asan/asan_fuchsia.cpp index aebc17f38b4..f8b2d5f2697 100644 --- a/compiler-rt/lib/asan/asan_fuchsia.cc +++ b/compiler-rt/lib/asan/asan_fuchsia.cpp @@ -1,4 +1,4 @@ -//===-- asan_fuchsia.cc --------------------------------------------------===// +//===-- asan_fuchsia.cpp -------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -28,7 +28,7 @@ namespace __asan { // The system already set up the shadow memory for us. // __sanitizer::GetMaxUserVirtualAddress has already been called by -// AsanInitInternal->InitializeHighMemEnd (asan_rtl.cc). +// AsanInitInternal->InitializeHighMemEnd (asan_rtl.cpp). // Just do some additional sanity checks here. void InitializeShadowMemory() { if (Verbosity()) PrintAddressSpaceLayout(); @@ -172,7 +172,7 @@ static void ThreadCreateHook(void *hook, bool aborted) { // This is called in the newly-created thread before it runs anything else, // with the pointer returned by BeforeThreadCreateHook (above). -// cf. asan_interceptors.cc:asan_thread_start +// cf. asan_interceptors.cpp:asan_thread_start static void ThreadStartHook(void *hook, uptr os_id) { AsanThread *thread = static_cast<AsanThread *>(hook); SetCurrentThread(thread); diff --git a/compiler-rt/lib/asan/asan_globals.cc b/compiler-rt/lib/asan/asan_globals.cpp index a831fdf9cd9..54e75f3cee7 100644 --- a/compiler-rt/lib/asan/asan_globals.cc +++ b/compiler-rt/lib/asan/asan_globals.cpp @@ -1,4 +1,4 @@ -//===-- asan_globals.cc ---------------------------------------------------===// +//===-- asan_globals.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/asan/asan_globals_win.cc b/compiler-rt/lib/asan/asan_globals_win.cpp index bdce37f701e..ff5fe226b53 100644 --- a/compiler-rt/lib/asan/asan_globals_win.cc +++ b/compiler-rt/lib/asan/asan_globals_win.cpp @@ -1,4 +1,4 @@ -//===-- asan_globals_win.cc -----------------------------------------------===// +//===-- asan_globals_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/asan/asan_interceptors.cc b/compiler-rt/lib/asan/asan_interceptors.cpp index 7eea7d2f942..482e44d83b7 100644 --- a/compiler-rt/lib/asan/asan_interceptors.cc +++ b/compiler-rt/lib/asan/asan_interceptors.cpp @@ -1,4 +1,4 @@ -//===-- asan_interceptors.cc ----------------------------------------------===// +//===-- asan_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. @@ -24,7 +24,7 @@ #include "sanitizer_common/sanitizer_libc.h" // There is no general interception at all on Fuchsia and RTEMS. -// Only the functions in asan_interceptors_memintrinsics.cc are +// Only the functions in asan_interceptors_memintrinsics.cpp are // really defined to replace libc functions. #if !SANITIZER_FUCHSIA && !SANITIZER_RTEMS diff --git a/compiler-rt/lib/asan/asan_interceptors.h b/compiler-rt/lib/asan/asan_interceptors.h index 381b0398419..155ea4156ab 100644 --- a/compiler-rt/lib/asan/asan_interceptors.h +++ b/compiler-rt/lib/asan/asan_interceptors.h @@ -8,7 +8,7 @@ // // This file is a part of AddressSanitizer, an address sanity checker. // -// ASan-private header for asan_interceptors.cc +// ASan-private header for asan_interceptors.cpp //===----------------------------------------------------------------------===// #ifndef ASAN_INTERCEPTORS_H #define ASAN_INTERCEPTORS_H diff --git a/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cc b/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp index e17f9ba4aab..56df60ba681 100644 --- a/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cc +++ b/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp @@ -1,4 +1,4 @@ -//===-- asan_interceptors_memintrinsics.cc --------------------------------===// +//===-- asan_interceptors_memintrinsics.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/asan/asan_internal.h b/compiler-rt/lib/asan/asan_internal.h index e4f77107929..72a4c3f22ff 100644 --- a/compiler-rt/lib/asan/asan_internal.h +++ b/compiler-rt/lib/asan/asan_internal.h @@ -61,29 +61,29 @@ using __sanitizer::StackTrace; void AsanInitFromRtl(); -// asan_win.cc +// asan_win.cpp void InitializePlatformExceptionHandlers(); // Returns whether an address is a valid allocated system heap block. // 'addr' must point to the beginning of the block. bool IsSystemHeapAddress(uptr addr); -// asan_rtl.cc +// asan_rtl.cpp void PrintAddressSpaceLayout(); void NORETURN ShowStatsAndAbort(); -// asan_shadow_setup.cc +// asan_shadow_setup.cpp void InitializeShadowMemory(); -// asan_malloc_linux.cc / asan_malloc_mac.cc +// asan_malloc_linux.cpp / asan_malloc_mac.cpp void ReplaceSystemMalloc(); -// asan_linux.cc / asan_mac.cc / asan_rtems.cc / asan_win.cc +// asan_linux.cpp / asan_mac.cpp / asan_rtems.cpp / asan_win.cpp uptr FindDynamicShadowStart(); void *AsanDoesNotSupportStaticLinkage(); void AsanCheckDynamicRTPrereqs(); void AsanCheckIncompatibleRT(); -// asan_thread.cc +// asan_thread.cpp AsanThread *CreateMainThread(); // Support function for __asan_(un)register_image_globals. Searches for the diff --git a/compiler-rt/lib/asan/asan_linux.cc b/compiler-rt/lib/asan/asan_linux.cpp index f9182328916..ce5e873dc51 100644 --- a/compiler-rt/lib/asan/asan_linux.cc +++ b/compiler-rt/lib/asan/asan_linux.cpp @@ -1,4 +1,4 @@ -//===-- asan_linux.cc -----------------------------------------------------===// +//===-- asan_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/asan/asan_mac.cc b/compiler-rt/lib/asan/asan_mac.cpp index e776acd2f53..769d499672d 100644 --- a/compiler-rt/lib/asan/asan_mac.cc +++ b/compiler-rt/lib/asan/asan_mac.cpp @@ -1,4 +1,4 @@ -//===-- asan_mac.cc -------------------------------------------------------===// +//===-- asan_mac.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/asan/asan_malloc_linux.cc b/compiler-rt/lib/asan/asan_malloc_linux.cpp index 86fcd3b12d5..706bc39f0c4 100644 --- a/compiler-rt/lib/asan/asan_malloc_linux.cc +++ b/compiler-rt/lib/asan/asan_malloc_linux.cpp @@ -1,4 +1,4 @@ -//===-- asan_malloc_linux.cc ----------------------------------------------===// +//===-- asan_malloc_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/asan/asan_malloc_mac.cc b/compiler-rt/lib/asan/asan_malloc_mac.cpp index 06dc1c28926..e8484685dae 100644 --- a/compiler-rt/lib/asan/asan_malloc_mac.cc +++ b/compiler-rt/lib/asan/asan_malloc_mac.cpp @@ -1,4 +1,4 @@ -//===-- asan_malloc_mac.cc ------------------------------------------------===// +//===-- asan_malloc_mac.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/asan/asan_malloc_win.cc b/compiler-rt/lib/asan/asan_malloc_win.cpp index 5fad55d6e28..291d411ea79 100644 --- a/compiler-rt/lib/asan/asan_malloc_win.cc +++ b/compiler-rt/lib/asan/asan_malloc_win.cpp @@ -1,4 +1,4 @@ -//===-- asan_malloc_win.cc ------------------------------------------------===// +//===-- asan_malloc_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/asan/asan_memory_profile.cc b/compiler-rt/lib/asan/asan_memory_profile.cpp index 87d874d2f27..4fcd5600ed1 100644 --- a/compiler-rt/lib/asan/asan_memory_profile.cc +++ b/compiler-rt/lib/asan/asan_memory_profile.cpp @@ -1,4 +1,4 @@ -//===-- asan_memory_profile.cc.cc -----------------------------------------===// +//===-- asan_memory_profile.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/asan/asan_new_delete.cc b/compiler-rt/lib/asan/asan_new_delete.cpp index 5f51d12b1b5..c15e208094e 100644 --- a/compiler-rt/lib/asan/asan_new_delete.cc +++ b/compiler-rt/lib/asan/asan_new_delete.cpp @@ -1,4 +1,4 @@ -//===-- asan_interceptors.cc ----------------------------------------------===// +//===-- asan_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/asan/asan_poisoning.cc b/compiler-rt/lib/asan/asan_poisoning.cpp index 44b87c76e9c..6b36be7d1cd 100644 --- a/compiler-rt/lib/asan/asan_poisoning.cc +++ b/compiler-rt/lib/asan/asan_poisoning.cpp @@ -1,4 +1,4 @@ -//===-- asan_poisoning.cc -------------------------------------------------===// +//===-- asan_poisoning.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/asan/asan_posix.cc b/compiler-rt/lib/asan/asan_posix.cpp index f3fbda07ac5..fab8905b317 100644 --- a/compiler-rt/lib/asan/asan_posix.cc +++ b/compiler-rt/lib/asan/asan_posix.cpp @@ -1,4 +1,4 @@ -//===-- asan_posix.cc -----------------------------------------------------===// +//===-- asan_posix.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/asan/asan_preinit.cc b/compiler-rt/lib/asan/asan_preinit.cpp index 444998c4417..b07556ec96f 100644 --- a/compiler-rt/lib/asan/asan_preinit.cc +++ b/compiler-rt/lib/asan/asan_preinit.cpp @@ -1,4 +1,4 @@ -//===-- asan_preinit.cc ---------------------------------------------------===// +//===-- asan_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/asan/asan_premap_shadow.cc b/compiler-rt/lib/asan/asan_premap_shadow.cpp index 6e547718c68..7835e99748f 100644 --- a/compiler-rt/lib/asan/asan_premap_shadow.cc +++ b/compiler-rt/lib/asan/asan_premap_shadow.cpp @@ -1,4 +1,4 @@ -//===-- asan_premap_shadow.cc ---------------------------------------------===// +//===-- asan_premap_shadow.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/asan/asan_report.cc b/compiler-rt/lib/asan/asan_report.cpp index 49067437d9d..d36b0b4c594 100644 --- a/compiler-rt/lib/asan/asan_report.cc +++ b/compiler-rt/lib/asan/asan_report.cpp @@ -1,4 +1,4 @@ -//===-- asan_report.cc ----------------------------------------------------===// +//===-- asan_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/asan/asan_rtems.cc b/compiler-rt/lib/asan/asan_rtems.cpp index 4878f4d67c8..360d5780a3f 100644 --- a/compiler-rt/lib/asan/asan_rtems.cc +++ b/compiler-rt/lib/asan/asan_rtems.cpp @@ -1,4 +1,4 @@ -//===-- asan_rtems.cc -----------------------------------------------------===// +//===-- asan_rtems.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/asan/asan_rtl.cc b/compiler-rt/lib/asan/asan_rtl.cpp index db8dcd0689a..b16ca950518 100644 --- a/compiler-rt/lib/asan/asan_rtl.cc +++ b/compiler-rt/lib/asan/asan_rtl.cpp @@ -1,4 +1,4 @@ -//===-- asan_rtl.cc -------------------------------------------------------===// +//===-- asan_rtl.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/asan/asan_shadow_setup.cc b/compiler-rt/lib/asan/asan_shadow_setup.cpp index 9cfa4e2bd65..68b0ba183dc 100644 --- a/compiler-rt/lib/asan/asan_shadow_setup.cc +++ b/compiler-rt/lib/asan/asan_shadow_setup.cpp @@ -1,4 +1,4 @@ -//===-- asan_shadow_setup.cc ----------------------------------------------===// +//===-- asan_shadow_setup.cpp ---------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -13,7 +13,7 @@ #include "sanitizer_common/sanitizer_platform.h" -// asan_fuchsia.cc and asan_rtems.cc have their own +// asan_fuchsia.cpp and asan_rtems.cpp have their own // InitializeShadowMemory implementation. #if !SANITIZER_FUCHSIA && !SANITIZER_RTEMS diff --git a/compiler-rt/lib/asan/asan_stack.cc b/compiler-rt/lib/asan/asan_stack.cpp index b244da4fa0a..b7f4e6aeeab 100644 --- a/compiler-rt/lib/asan/asan_stack.cc +++ b/compiler-rt/lib/asan/asan_stack.cpp @@ -1,4 +1,4 @@ -//===-- asan_stack.cc -----------------------------------------------------===// +//===-- asan_stack.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/asan/asan_stack.h b/compiler-rt/lib/asan/asan_stack.h index 3a4b3cefc5d..4089d3d7340 100644 --- a/compiler-rt/lib/asan/asan_stack.h +++ b/compiler-rt/lib/asan/asan_stack.h @@ -8,7 +8,7 @@ // // This file is a part of AddressSanitizer, an address sanity checker. // -// ASan-private header for asan_stack.cc. +// ASan-private header for asan_stack.cpp. //===----------------------------------------------------------------------===// #ifndef ASAN_STACK_H diff --git a/compiler-rt/lib/asan/asan_stats.cc b/compiler-rt/lib/asan/asan_stats.cpp index 2f996ce63cc..bc4e8c15cc1 100644 --- a/compiler-rt/lib/asan/asan_stats.cc +++ b/compiler-rt/lib/asan/asan_stats.cpp @@ -1,4 +1,4 @@ -//===-- asan_stats.cc -----------------------------------------------------===// +//===-- asan_stats.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/asan/asan_suppressions.cc b/compiler-rt/lib/asan/asan_suppressions.cpp index 118853e61b7..a9c0d107694 100644 --- a/compiler-rt/lib/asan/asan_suppressions.cc +++ b/compiler-rt/lib/asan/asan_suppressions.cpp @@ -1,4 +1,4 @@ -//===-- asan_suppressions.cc ----------------------------------------------===// +//===-- asan_suppressions.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/asan/asan_suppressions.h b/compiler-rt/lib/asan/asan_suppressions.h index 9bf297602cf..121d4ddf187 100644 --- a/compiler-rt/lib/asan/asan_suppressions.h +++ b/compiler-rt/lib/asan/asan_suppressions.h @@ -8,7 +8,7 @@ // // This file is a part of AddressSanitizer, an address sanity checker. // -// ASan-private header for asan_suppressions.cc. +// ASan-private header for asan_suppressions.cpp. //===----------------------------------------------------------------------===// #ifndef ASAN_SUPPRESSIONS_H #define ASAN_SUPPRESSIONS_H diff --git a/compiler-rt/lib/asan/asan_thread.cc b/compiler-rt/lib/asan/asan_thread.cpp index e63561c2243..d48b3414dd5 100644 --- a/compiler-rt/lib/asan/asan_thread.cc +++ b/compiler-rt/lib/asan/asan_thread.cpp @@ -1,4 +1,4 @@ -//===-- asan_thread.cc ----------------------------------------------------===// +//===-- asan_thread.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/asan/asan_thread.h b/compiler-rt/lib/asan/asan_thread.h index d725e88864e..c503f507059 100644 --- a/compiler-rt/lib/asan/asan_thread.h +++ b/compiler-rt/lib/asan/asan_thread.h @@ -8,7 +8,7 @@ // // This file is a part of AddressSanitizer, an address sanity checker. // -// ASan-private header for asan_thread.cc. +// ASan-private header for asan_thread.cpp. //===----------------------------------------------------------------------===// #ifndef ASAN_THREAD_H diff --git a/compiler-rt/lib/asan/asan_win.cc b/compiler-rt/lib/asan/asan_win.cpp index f7601f3301e..f8b98ca3366 100644 --- a/compiler-rt/lib/asan/asan_win.cc +++ b/compiler-rt/lib/asan/asan_win.cpp @@ -1,4 +1,4 @@ -//===-- asan_win.cc -------------------------------------------------------===// +//===-- asan_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/asan/asan_win_dll_thunk.cc b/compiler-rt/lib/asan/asan_win_dll_thunk.cpp index 47b3948c5ae..95eee5eed0d 100644 --- a/compiler-rt/lib/asan/asan_win_dll_thunk.cc +++ b/compiler-rt/lib/asan/asan_win_dll_thunk.cpp @@ -1,4 +1,4 @@ -//===-- asan_win_dll_thunk.cc ---------------------------------------------===// +//===-- asan_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. @@ -54,7 +54,7 @@ INTERCEPT_WRAP_W_W(_expand_dbg) // TODO(timurrrr): Might want to add support for _aligned_* allocation // functions to detect a bit more bugs. Those functions seem to wrap malloc(). -// TODO(timurrrr): Do we need to add _Crt* stuff here? (see asan_malloc_win.cc). +// TODO(timurrrr): Do we need to add _Crt* stuff here? (see asan_malloc_win.cpp) INTERCEPT_LIBRARY_FUNCTION(atoi); INTERCEPT_LIBRARY_FUNCTION(atol); diff --git a/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc b/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cpp index cf4a59842c4..5bd457a22b6 100644 --- a/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc +++ b/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cpp @@ -1,4 +1,4 @@ -//===-- asan_win_dynamic_runtime_thunk.cc ---------------------------------===// +//===-- asan_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. @@ -114,7 +114,7 @@ int (*__asan_schedule_unregister_globals)() = ScheduleUnregisterGlobals; //////////////////////////////////////////////////////////////////////////////// // ASan SEH handling. // We need to set the ASan-specific SEH handler at the end of CRT initialization -// of each module (see also asan_win.cc). +// of each module (see also asan_win.cpp). extern "C" { __declspec(dllimport) int __asan_set_seh_filter(); static int SetSEHFilter() { return __asan_set_seh_filter(); } diff --git a/compiler-rt/lib/asan/asan_win_weak_interception.cc b/compiler-rt/lib/asan/asan_win_weak_interception.cpp index 19965ca473b..62534e12e2a 100644 --- a/compiler-rt/lib/asan/asan_win_weak_interception.cc +++ b/compiler-rt/lib/asan/asan_win_weak_interception.cpp @@ -1,4 +1,4 @@ -//===-- asan_win_weak_interception.cc -------------------------------------===// +//===-- asan_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/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh index 88a4ebdf89e..ffce7fdc937 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh +++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh @@ -81,7 +81,7 @@ run_lint ${ASAN_RTL_LINT_FILTER} ${INTERCEPTION}/*.cpp \ # ASan ASAN_RTL=${COMPILER_RT}/lib/asan -run_lint ${ASAN_RTL_LINT_FILTER} ${ASAN_RTL}/*.cc \ +run_lint ${ASAN_RTL_LINT_FILTER} ${ASAN_RTL}/*.cpp \ ${ASAN_RTL}/*.h & run_lint ${ASAN_TEST_LINT_FILTER} ${ASAN_RTL}/tests/*.cc \ ${ASAN_RTL}/tests/*.h & diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_host.cc b/compiler-rt/test/asan/TestCases/Windows/dll_host.cc index 37aad4800df..30678e3eb6e 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_host.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_host.cc @@ -18,11 +18,11 @@ // Get the list of ASan wrappers imported by the DLL RTL: // [BEWARE: be really careful with the sed commands, as this test can be run // from different environemnts with different shells and seds] -// RUN: grep INTERCEPT_LIBRARY_FUNCTION %p/../../../../lib/asan/asan_win_dll_thunk.cc \ +// RUN: grep INTERCEPT_LIBRARY_FUNCTION %p/../../../../lib/asan/asan_win_dll_thunk.cpp \ // RUN: | grep -v define | sed -e s/.*(/__asan_wrap_/ -e s/).*// \ // RUN: > %t.imports1 // -// Add functions interecepted in asan_malloc.win.cc and asan_win.cc. +// Add functions interecepted in asan_malloc.win.cpp and asan_win.cpp. // RUN: grep '[I]MPORT:' %s | sed -e 's/.*[I]MPORT: //' > %t.imports2 // IMPORT: __asan_wrap_HeapAlloc // IMPORT: __asan_wrap_HeapFree @@ -42,7 +42,7 @@ // // Now make sure the DLL thunk imports everything: // RUN: echo -// RUN: echo "=== NOTE === If you see a mismatch below, please update asan_win_dll_thunk.cc" +// RUN: echo "=== NOTE === If you see a mismatch below, please update asan_win_dll_thunk.cpp" // RUN: diff %t.imports-sorted %t.exports-sorted // REQUIRES: asan-static-runtime |