Run an IWYU pass and clang-format GWP-ASan code.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp | ||
---|---|---|
12 | sys/syscall.h -> syscall.h may be an unintended change. |
LGTM with nit
compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp | ||
---|---|---|
12 | Yes, that's strange, is it a change from iwui, clang-format, or manual? |
compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp | ||
---|---|---|
12 | IWYU made the change: /usr/local/google/home/mitchp/llvm/compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp should add these lines: #include <syscall.h> // for SYS_gettid /usr/local/google/home/mitchp/llvm/compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp should remove these lines: - #include <sys/syscall.h> // lines 12-12 The full include-list for /usr/local/google/home/mitchp/llvm/compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp: #include <stdint.h> // for uint64_t #include <syscall.h> // for SYS_gettid #include <unistd.h> // for syscall #include "gwp_asan/common.h" // for getThreadID --- I'm inclined to go with "whatever will make me not have to remember that IWYU hates this include" solution (which is syscall.h), unless we can think of anything that will break. LMK :). |
compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp | ||
---|---|---|
12 | I'd rather keep <sys/syscall.h> with an IWYU pragma. |
sys/syscall.h -> syscall.h may be an unintended change.
With (Linux) glibc they are exactly the same, but IIRC <sys/syscall.h> is the traditional name and I'm not sure if BSD has (or has always had) both.