]> granicus.if.org Git - clang/commit
[analyzer; alternate edges] Fix the edge locations in presence of macros.
authorAnna Zaks <ganna@apple.com>
Sat, 8 Jun 2013 00:29:24 +0000 (00:29 +0000)
committerAnna Zaks <ganna@apple.com>
Sat, 8 Jun 2013 00:29:24 +0000 (00:29 +0000)
commita3f5a5afefca7653349a88472d5ce01ba7226e27
tree2c22a4a2a5a072befc334377e75eadb0fd88d7c5
parent9aaee92faa84a54a78cc298b1d281c4bce39c122
[analyzer; alternate edges] Fix the edge locations in presence of macros.

We drew the diagnostic edges to wrong statements in cases the note was on a macro.
The fix is simple, but seems to work just fine for a whole bunch of test cases (plist-macros.cpp).

Also, removes an unnecessary edge in edges-new.mm, when function signature starts with a macro.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183599 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporter.cpp
test/Analysis/edges-new.mm
test/Analysis/plist-macros.cpp [new file with mode: 0644]