[PATCH] D108003: [Clang] Extend -Wbool-operation to warn about bitwise and of bools with side effects
    Dávid Bolvanský via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Aug 13 10:31:59 PDT 2021
    
    
  
xbolva00 added a comment.
Thanks!
Well, for those cases, && instead of & looks like a better choice. WDYT?
Or is it a very noisy? Restrict more so both sides must have side effects?
Maybe we could suggest to use cast - (int)boolRHS - as a way how to silence this warning.. Or any better suggestion?
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108003/new/
https://reviews.llvm.org/D108003
    
    
More information about the cfe-commits
mailing list