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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 07:35:53 PDT 2016

aaron.ballman added inline comments.

Comment at: clang-tidy/modernize/UseBoolLiteralsCheck.cpp:41
@@ +40,3 @@
+          // using anyOf(BINDLITERAL(), anything()).
+          anyOf(hasTrueExpression(ignoringParenImpCasts(
+                    integerLiteral().bind("trueBranchLiteral"))),
alexfh wrote:
> I think, Aaron was talking about `eachOf` matcher that will actually generate a separate match for each of its submatchers.
I *knew* we had something that would do this! Thank you for the reminder, Alex. :-)


More information about the cfe-commits mailing list