zinovy.nis added inline comments.
================ Comment at: clang-tools-extra/test/clang-tidy/checkers/bugprone-redundant-branch-condition.cpp:968 + } +} + ---------------- aaron.ballman wrote: > Another test that would be interesting is: > ``` > if (tryToExtinguish(isSet) && isSet) { > if (tryToExtinguishByVal(isSet) && isSet) { // Dupe check of isSet should > be diagnosed > scream(); > } > } > > if (tryToExtinguishByVal(isSet) && isSet) { > if (tryToExtinguish(isSet) && isSet) { // Ok > scream(); > } > } > ``` Nice catch! Thanks. Looks like isChangedBefore is too rough and must be refined Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91495/new/ https://reviews.llvm.org/D91495 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits