[PATCH] D24861: [Sema] extend Wshift-op-parentheses so it warns for multiplicative operators
Joerg Sonnenberger via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 27 14:52:53 PDT 2016
joerg added a subscriber: joerg.
joerg added a comment.
I think the comment from Daniel shows the crux of the issue. A left shift is by nature a multiplication operation, so I don't see why it should get the warning. A right shift works like a division and order is quite significant for that.
Repository:
rL LLVM
https://reviews.llvm.org/D24861
More information about the cfe-commits
mailing list