baloghadamsoftware marked 11 inline comments as done.
baloghadamsoftware added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/misc/RedundantConditionCheck.cpp:39
+                 declRefExpr(hasDeclaration(varDecl().bind("cond_var"))),
+                 binaryOperator(hasOperatorName("&&"),
+                                hasEitherOperand(declRefExpr(hasDeclaration(
----------------
njames93 wrote:
> Recursive matchers are a pain, but this will miss:
>  ```
> if (A && B && ... Y && Z)
> ```
> 
I suppose that for this purpose we have to make our own matcher? Right? This 
also makes the fixits more complex. I think this could be done in a later 
phase. I added a `FIXME` now.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81272/new/

https://reviews.llvm.org/D81272



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to