Run an IWYU pass and clang-format GWP-ASan code.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp | ||
---|---|---|
12 ↗ | (On Diff #309649) | sys/syscall.h -> syscall.h may be an unintended change. |
Comment Actions
LGTM with nit
compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp | ||
---|---|---|
12 ↗ | (On Diff #309649) | 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 ↗ | (On Diff #309649) | 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 ↗ | (On Diff #309649) | I'd rather keep <sys/syscall.h> with an IWYU pragma. |