[libc-commits] [libc] [libc] fix clang-tidy llvm-header-guard warnings (PR #82679)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue Feb 27 16:16:33 PST 2024


nickdesaulniers wrote:

>> Is there a reason you used perl-as-sed rather than clang-tidy --fix?
>>I think that would fully canonicalize things wrt the trailing underscores too.

> Sure, I'll give it a shot!

So I hacked the ninja `libc-lint` target to just run `-checks="-*,llvm-header-guard" --fix` than ran `ninja libc-lint`.  While it cleaned up some headers, it also crashed a lot (ICE) and really mucked up some of the sources! I'm impressed!

https://github.com/llvm/llvm-project/pull/82679


More information about the libc-commits mailing list