[PATCH] D23316: [analyzer] Fixed the false-positives caused by macro generated code.

Raphael Isemann via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 9 07:03:06 PDT 2016

teemperor created this revision.
teemperor added reviewers: v.g.vassilev, NoQ, zaks.anna.
teemperor added a subscriber: cfe-commits.

So far macro-generated code was treated by the CloneDetector as normal code. This caused that some macros where reported as false-positive clones because their generated code was detected as a clone.

This patch prevents that macro-generated code is influencing the complexity value of clones. This prevents that macros are reported as clones.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23316.67333.patch
Type: text/x-patch
Size: 4165 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160809/181615e7/attachment.bin>

More information about the cfe-commits mailing list