[clang-tools-extra] [clang-tidy] add option to `readability-use-concise-preprocessor-directives` to take consistency into account (PR #156220)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 10 12:59:19 PDT 2025
================
@@ -28,3 +28,41 @@ Since C23 and C++23:
#elifdef MEOW
#elifndef MEOW
+
+Options
+-------
+
+.. option:: PreserveConsistency
+
+ If `true`, directives will not be simplified if doing so would break
+ consistency with other directives in a chain. Default is `false`.
+
+Example
----------------
vbvictor wrote:
This whole "Example" block should have the same indentation as option text - 3 spaces in your case.
This will keep it attached to "option"
https://github.com/llvm/llvm-project/pull/156220
More information about the cfe-commits
mailing list