summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-10-05 00:41:03 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-10-05 00:41:03 +0000
commit15f17cbbd81365baeb1d02f3a13ad9cc7b426cae (patch)
treeabd08a5394a19acaa40a2ed4fde98d6df88a4494 /llvm/lib/Transforms
parent65e8419086ac33afb7e8e30c4cccd9feff818b49 (diff)
downloadbcm5719-llvm-15f17cbbd81365baeb1d02f3a13ad9cc7b426cae.tar.gz
bcm5719-llvm-15f17cbbd81365baeb1d02f3a13ad9cc7b426cae.zip
Implement -Wshift-op-parentheses for: a << b + c
This appears to be consistent with GCC's implementation of the same warning under -Wparentheses. Suppressing a << b + c for cases where 'a' is a user defined type for compatibility with C++ stream IO. Otherwise suggest parentheses around the addition or subtraction subexpression. (this came up when MSVC was complaining (incorrectly, so far as I can tell) about a perceived violation of this within the LLVM codebase, PR14001) llvm-svn: 165283
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud