[clang] clang-format: Add -disable-format option (PR #137617)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 28 21:48:09 PDT 2025


https://github.com/owenca requested changes to this pull request.

This looks confusing. I would expect `-disable-format` to mean what it says. (But then why run clang-format?)

If we allow turning on `SortIncludes` only, people will start asking for `QualifierAlignment` only, `IntegerLiteralSeparator` only, etc. If @mydeveloperday is not against this, then we should upgrade `DisableFormat` to a `struct` with the supported exceptions as members.

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


More information about the cfe-commits mailing list