summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide/FileCheck.rst
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2017-11-07 13:17:58 +0000
committerGabor Horvath <xazax.hun@gmail.com>2017-11-07 13:17:58 +0000
commitec87e17c846ac7ae115df8cd8ae9e3e38aea067e (patch)
tree6db9c808d367427076b565b109939de65ccdb0d1 /llvm/docs/CommandGuide/FileCheck.rst
parentc4422247b3a768fe6773a96aa6f19f1156018304 (diff)
downloadbcm5719-llvm-ec87e17c846ac7ae115df8cd8ae9e3e38aea067e.tar.gz
bcm5719-llvm-ec87e17c846ac7ae115df8cd8ae9e3e38aea067e.zip
[clang-tidy] Misc redundant expressions checker updated for macros
Redundant Expression Checker is updated to be able to detect expressions that contain macros. Also, other small details are modified to improve the current implementation. The improvements in detail are as follows: * Binary and ternary operator expressions containing two constants, with at least one of them from a macro, are detected and tested for redundancy. Macro expressions are treated somewhat differently from other expressions, because the particular values of macros can vary across builds. They can be considered correct and intentional, even if macro values equal, produce ranges that exclude each other or fully overlap, etc. * The code structure is slightly modified: typos are corrected, comments are added and some functions are renamed to improve comprehensibility, both in the checker and the test file. A few test cases are moved to another function. * The checker is now able to detect redundant CXXFunctionalCastExprs as well. A corresponding test case is added. Patch by: Lilla Barancsuk! Differential Revision: https://reviews.llvm.org/D38688 llvm-svn: 317570
Diffstat (limited to 'llvm/docs/CommandGuide/FileCheck.rst')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud