Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 0e6b6a3

Browse files
committed
NFC: clang-format r370008 to suppress lint errors
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@370023 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 4da927c commit 0e6b6a3

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

lib/sanitizer_common/sanitizer_common.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ void *MmapOrDieOnFatalError(uptr size, const char *mem_type);
101101
bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name = nullptr)
102102
WARN_UNUSED_RESULT;
103103
bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size,
104-
const char *name = nullptr)
105-
WARN_UNUSED_RESULT;
104+
const char *name = nullptr) WARN_UNUSED_RESULT;
106105
void *MmapNoReserveOrDie(uptr size, const char *mem_type);
107106
void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name = nullptr);
108107
// Behaves just like MmapFixedOrDie, but tolerates out of memory condition, in

lib/sanitizer_common/sanitizer_posix_libcdep.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,13 @@ void PlatformPrepareForSandboxing(__sanitizer_sandbox_arguments *args) {
304304
MemoryMappingLayout::CacheMemoryMappings();
305305
}
306306

307-
static bool MmapFixed(uptr fixed_addr, uptr size,
308-
int additional_flags, const char *name) {
307+
static bool MmapFixed(uptr fixed_addr, uptr size, int additional_flags,
308+
const char *name) {
309309
size = RoundUpTo(size, GetPageSizeCached());
310310
fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached());
311-
uptr p = MmapNamed((void *)fixed_addr, size, PROT_READ | PROT_WRITE,
312-
MAP_PRIVATE | MAP_FIXED | additional_flags | MAP_ANON,
313-
name);
311+
uptr p =
312+
MmapNamed((void *)fixed_addr, size, PROT_READ | PROT_WRITE,
313+
MAP_PRIVATE | MAP_FIXED | additional_flags | MAP_ANON, name);
314314
int reserrno;
315315
if (internal_iserror(p, &reserrno)) {
316316
Report("ERROR: %s failed to "

0 commit comments

Comments
 (0)