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

2016-08-20 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279367: [analyzer] Make CloneDetector consider macro expansions. (authored by dergachev). Changed prior to commit: https://reviews.llvm.org/D23316?vs=68684=68771#toc Repository: rL LLVM

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

2016-08-19 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 68684. teemperor added a comment. - Fixed typo. 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 Index:

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

2016-08-18 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 68568. teemperor marked 2 inline comments as done. teemperor added a comment. - Added false-positives note for empty macros to the test suite. https://reviews.llvm.org/D23316 Files: include/clang/Analysis/CloneDetection.h

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

2016-08-18 Thread Raphael Isemann via cfe-commits
teemperor marked 10 inline comments as done. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} NoQ wrote: > omtcyfz wrote: > > omtcyfz wrote: > > > omtcyfz wrote: > > > > NoQ wrote: > > > >

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

2016-08-18 Thread Raphael Isemann via cfe-commits
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:

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

2016-08-11 Thread Artem Dergachev via cfe-commits
NoQ added a comment. No comments of my own, the patch looks good :) Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} omtcyfz wrote: > omtcyfz wrote: > > omtcyfz wrote: > > > NoQ wrote: >

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

2016-08-11 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} omtcyfz wrote: > omtcyfz wrote: > > NoQ wrote: > > > omtcyfz wrote: > > > > Do I understand correctly that a

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

2016-08-11 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} omtcyfz wrote: > NoQ wrote: > > omtcyfz wrote: > > > Do I understand correctly that a code generated by a

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

2016-08-11 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} NoQ wrote: > omtcyfz wrote: > > Do I understand correctly that a code generated by a macro doesn't affect >

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

2016-08-11 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} omtcyfz wrote: > Do I understand correctly that a code generated by a macro doesn't affect > "complexity" at all

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

2016-08-11 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a subscriber: omtcyfz. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} Do I understand correctly that a code generated by a macro doesn't affect "complexity" at all then?

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

2016-08-09 Thread Vassil Vassilev via cfe-commits
v.g.vassilev added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:431 @@ +430,3 @@ +// level of it's containing clone. This prevents false-positives caused by +// complex macros. For example 'assert(false)' could be reported as a clone +// if the assert

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

2016-08-09 Thread Raphael Isemann via cfe-commits
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