[PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 07:23:36 PDT 2016

alexfh requested changes to this revision.
This revision now requires changes to proceed.

Comment at: clang-tidy/modernize/UseBoolLiteralsCheck.cpp:41
@@ +40,3 @@
+          // using anyOf(BINDLITERAL(), anything()).
+          anyOf(hasTrueExpression(ignoringParenImpCasts(
+                    integerLiteral().bind("trueBranchLiteral"))),
I think, Aaron was talking about `eachOf` matcher that will actually generate a separate match for each of its submatchers.


More information about the cfe-commits mailing list