[PATCH] D86137: Add ignore-unknown-options flag to clang-format.
Joachim Meyer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 5 07:56:44 PDT 2020
fodinabor added a comment.
I see the possible issue with the possible version mismatches and that is why I'd make people opt-in for this option, to still being able to format their files (e.g. if using out-dated built-in versions like in Visual Studio - I know you can specify your own binary) but the real formatting can be done with a pre-commit script or similar, where the new options are actually supported.
Regarding not touching the LLVM support library: I'd love to find a way, but as clang-format uses the `>>` operator to read the YAML and this operator automatically emits the errors, I don't see any other obvious way.. (maybe there's a LLVM trick to suppress those errors that I haven't seen, yet :))
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86137/new/
https://reviews.llvm.org/D86137
More information about the cfe-commits
mailing list