summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2014-03-29 00:35:20 +0000
committerTed Kremenek <kremenek@apple.com>2014-03-29 00:35:20 +0000
commitec3bbf4933d70fd1c907f883acd45da4ab1f10ee (patch)
treedcd8e6bb16ecfd1b1d0da0b1e308b6bf44956d63 /llvm/tools
parentfdf496cb4807647276ad43f9c4ae5aa30bad299c (diff)
downloadbcm5719-llvm-ec3bbf4933d70fd1c907f883acd45da4ab1f10ee.tar.gz
bcm5719-llvm-ec3bbf4933d70fd1c907f883acd45da4ab1f10ee.zip
Improve -Wunreachable-code to provide a means to indicate code is intentionally marked dead via if((0)).
Taking a hint from -Wparentheses, use an extra '()' as a sigil that a dead condition is intentionally dead. For example: if ((0)) { dead } When this sigil is found, do not emit a dead code warning. When the analysis sees: if (0) it suggests inserting '()' as a Fix-It. llvm-svn: 205069
Diffstat (limited to 'llvm/tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud