[PATCH] D142609: [Clang] Fix -Wconstant-logical-operand when LHS is a constant

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 17 02:16:37 PDT 2023


xbolva00 added a comment.

We should not warn for macros.

if (ENABLE_XYZ && x) {}
}

This pattern is used in real world codebases.


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

https://reviews.llvm.org/D142609



More information about the cfe-commits mailing list