diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-07-27 11:27:32 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-07-27 13:48:44 +0200 |
| commit | 9faf980ad54773c9068a74f42f3d420bc06474dd (patch) | |
| tree | 391d0322b5c1ff369cf1fff2610d36300622137a /executor | |
| parent | ca3f673ab4237440e75df45a51b3412745194743 (diff) | |
executor: disable clang-format for some parts
clang-format badly mishandles this part,
moreover different versions mishandle it differently.
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/executor/common.h b/executor/common.h index 1b9afd074..1665ef2cd 100644 --- a/executor/common.h +++ b/executor/common.h @@ -603,6 +603,8 @@ static void loop() #endif #endif +// clang-format off +// clang-format badly mishandles this part, moreover different versions mishandle it differently. #if !SYZ_EXECUTOR [[SYSCALL_DEFINES]] @@ -610,14 +612,11 @@ static void loop() #if SYZ_THREADED || SYZ_REPEAT || SYZ_SANDBOX_NONE || SYZ_SANDBOX_SETUID || SYZ_SANDBOX_NAMESPACE #if SYZ_THREADED -void -execute_call(int call) +void execute_call(int call) #elif SYZ_REPEAT -void -execute_one() +void execute_one() #else -void -loop() +void loop() #endif { [[SYSCALLS]] @@ -636,11 +635,12 @@ int main(int argc, char** argv) if (argc == 2 && strcmp(argv[1], "child") == 0) child(); #else -int -main() +int main() { [[MMAP_DATA]] #endif + // clang-format on + #if SYZ_HANDLE_SEGV install_segv_handler(); #endif |
