[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)
commit22895473af4cd87cd00a44410a2d383d2784974e
tree0216a17504b6b3b836d0767362a925f6cc4db0d5
parentabfeabb565cf24c09ba9d7ec8faf0f1329bb8015
[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.

llvm-svn: 183599
clang/lib/StaticAnalyzer/Core/BugReporter.cpp
clang/test/Analysis/edges-new.mm
clang/test/Analysis/plist-macros.cpp [new file with mode: 0644]