diff options
Diffstat (limited to 'lib/interception')
-rw-r--r-- | lib/interception/interception.h | 4 | ||||
-rw-r--r-- | lib/interception/interception_linux.cpp (renamed from lib/interception/interception_linux.cc) | 2 | ||||
-rw-r--r-- | lib/interception/interception_mac.cpp (renamed from lib/interception/interception_mac.cc) | 2 | ||||
-rw-r--r-- | lib/interception/interception_type_test.cpp (renamed from lib/interception/interception_type_test.cc) | 2 | ||||
-rw-r--r-- | lib/interception/interception_win.cpp (renamed from lib/interception/interception_win.cc) | 10 |
5 files changed, 10 insertions, 10 deletions
diff --git a/lib/interception/interception.h b/lib/interception/interception.h index dacfa5ede28df..d27a8ccf92a8e 100644 --- a/lib/interception/interception.h +++ b/lib/interception/interception.h @@ -272,9 +272,9 @@ const interpose_substitution substitution_##func_name[] \ // INTERCEPT_FUNCTION macro, only its name. namespace __interception { #if defined(_WIN64) -typedef unsigned long long uptr; // NOLINT +typedef unsigned long long uptr; #else -typedef unsigned long uptr; // NOLINT +typedef unsigned long uptr; #endif // _WIN64 } // namespace __interception diff --git a/lib/interception/interception_linux.cc b/lib/interception/interception_linux.cpp index 4b27102a159c8..950cd5126538b 100644 --- a/lib/interception/interception_linux.cc +++ b/lib/interception/interception_linux.cpp @@ -1,4 +1,4 @@ -//===-- interception_linux.cc -----------------------------------*- C++ -*-===// +//===-- interception_linux.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/lib/interception/interception_mac.cc b/lib/interception/interception_mac.cpp index 5bfc1514d2b87..fb6eadcff597e 100644 --- a/lib/interception/interception_mac.cc +++ b/lib/interception/interception_mac.cpp @@ -1,4 +1,4 @@ -//===-- interception_mac.cc -------------------------------------*- C++ -*-===// +//===-- interception_mac.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/lib/interception/interception_type_test.cc b/lib/interception/interception_type_test.cpp index c00294a9b474a..a611604a700cf 100644 --- a/lib/interception/interception_type_test.cc +++ b/lib/interception/interception_type_test.cpp @@ -1,4 +1,4 @@ -//===-- interception_type_test.cc -------------------------------*- C++ -*-===// +//===-- interception_type_test.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/lib/interception/interception_win.cc b/lib/interception/interception_win.cpp index 40bde008052ba..1a1c327e61240 100644 --- a/lib/interception/interception_win.cc +++ b/lib/interception/interception_win.cpp @@ -1,4 +1,4 @@ -//===-- interception_linux.cc -----------------------------------*- C++ -*-===// +//===-- interception_linux.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. @@ -883,8 +883,8 @@ uptr InternalGetProcAddress(void *module, const char *func_name) { // Check that the module header is full and present. RVAPtr<IMAGE_DOS_HEADER> dos_stub(module, 0); RVAPtr<IMAGE_NT_HEADERS> headers(module, dos_stub->e_lfanew); - if (!module || dos_stub->e_magic != IMAGE_DOS_SIGNATURE || // "MZ" - headers->Signature != IMAGE_NT_SIGNATURE || // "PE\0\0" + if (!module || dos_stub->e_magic != IMAGE_DOS_SIGNATURE || // "MZ" + headers->Signature != IMAGE_NT_SIGNATURE || // "PE\0\0" headers->FileHeader.SizeOfOptionalHeader < sizeof(IMAGE_OPTIONAL_HEADER)) { return 0; @@ -963,8 +963,8 @@ bool OverrideImportedFunction(const char *module_to_patch, // Check that the module header is full and present. RVAPtr<IMAGE_DOS_HEADER> dos_stub(module, 0); RVAPtr<IMAGE_NT_HEADERS> headers(module, dos_stub->e_lfanew); - if (!module || dos_stub->e_magic != IMAGE_DOS_SIGNATURE || // "MZ" - headers->Signature != IMAGE_NT_SIGNATURE || // "PE\0\0" + if (!module || dos_stub->e_magic != IMAGE_DOS_SIGNATURE || // "MZ" + headers->Signature != IMAGE_NT_SIGNATURE || // "PE\0\0" headers->FileHeader.SizeOfOptionalHeader < sizeof(IMAGE_OPTIONAL_HEADER)) { return false; |