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

Raphael Isemann via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 18 10:25:32 PDT 2016


teemperor updated this revision to Diff 68556.
teemperor added a comment.

- Added more documentation to the CloneSignature::Complexity field.
- Macros now have a complexity value of 1 + sum(ChildComplexityValues).
- Tests should be less cryptic now.


https://reviews.llvm.org/D23316

Files:
  include/clang/Analysis/CloneDetection.h
  lib/Analysis/CloneDetection.cpp
  test/Analysis/copypaste/macro-complexity.cpp
  test/Analysis/copypaste/macros.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23316.68556.patch
Type: text/x-patch
Size: 10633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160818/cb596c0d/attachment.bin>


More information about the cfe-commits mailing list