[clang-tools-extra] [clang-tidy] Add option to ignore macros in `readability-simplify-boolean-expr` check (PR #78043)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 13 08:06:58 PST 2024


================
@@ -0,0 +1,20 @@
+// RUN: %check_clang_tidy -check-suffixes=,MACROS %s readability-simplify-boolean-expr %t
+
+// Ignore expressions in macros.
+// RUN: %check_clang_tidy %s readability-simplify-boolean-expr %t
+// RUN:     -- -config="{CheckOptions: [{key: readability-simplify-boolean-expr.IgnoreMacros, value: true}]}"
----------------
PiotrZSL wrote:

follow new style of options (no need for value or key, check other checks)

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


More information about the cfe-commits mailing list