aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/WhitespaceManager.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2013-04-23 23:57:43 +0000
committerAnna Zaks <ganna@apple.com>2013-04-23 23:57:43 +0000
commit0f8579274a010f360a371b53101859d9d6052314 (patch)
tree944fb500a65d22c06503588fdade01e412ecfa51 /lib/Format/WhitespaceManager.cpp
parent70054261e009085bff6623eec6cc013430183bec (diff)
[analyzer] Refactor BugReport::getLocation and PathDiagnosticLocation::createEndOfPath for greater code reuse
The 2 functions were computing the same location using different logic (each one had edge case bugs that the other one did not). Refactor them to rely on the same logic. The location of the warning reported in text/command line output format will now match that of the plist file. There is one change in the plist output as well. When reporting an error on a BinaryOperator, we use the location of the operator instead of the beginning of the BinaryOperator expression. This matches our output on command line and looks better in most cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/WhitespaceManager.cpp')
0 files changed, 0 insertions, 0 deletions