[libc-commits] [libc] [libc][pthread] fix -Wmissing-field-initializers (PR #126314)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Fri Feb 7 14:57:40 PST 2025
nickdesaulniers wrote:
> oh gawd clang-format...my eyes!!!
So, `echo '#define foo {}' | clang-format -` can produce different output based on where in the tree you are. IIUC, clang-format will traverse up until it finds a .clang-format. We have effectively `echo '#define foo {}' | clang-format --style='{BasedOnStyle: LLVM}' -` due to llvm-project/.clang-format.
But there may be a format option that fixes this (who knows if it's specific enough though, or too broad). Still digging in https://clang.llvm.org/docs/ClangFormatStyleOptions.html.
https://github.com/llvm/llvm-project/pull/126314
More information about the libc-commits
mailing list