diff options
author | Anna Zaks <ganna@apple.com> | 2011-09-15 20:06:34 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-09-15 20:06:34 +0000 |
commit | 207c68012ab26e1d9d95ec0ba3b6fb18b69a96c9 (patch) | |
tree | 3816e10cab694be4b3f1f45a74a3ba51010e40d7 /clang/lib | |
parent | 82dd698575896ede90b79b9a1f4f65cfac193886 (diff) | |
download | bcm5719-llvm-207c68012ab26e1d9d95ec0ba3b6fb18b69a96c9.tar.gz bcm5719-llvm-207c68012ab26e1d9d95ec0ba3b6fb18b69a96c9.zip |
[analyzer] Refactor: make PathDiagnosticLocation responsible for validation of SourceLocations (commit 4 of ?):
- The closing brace is always a single location, not a range.
- The test case previously had a location key 57:1 followed by a range [57:1 - 57:1].
llvm-svn: 139832
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp b/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp index 8dcb03bc159..495451d261e 100644 --- a/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp +++ b/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp @@ -132,7 +132,7 @@ void PathDiagnosticClient::HandlePathDiagnostic(const PathDiagnostic *D) { PathDiagnosticLocation::PathDiagnosticLocation(const LocationContext *lc, const SourceManager &sm) - : K(RangeK), S(0), D(0), SM(&sm), LC(lc) { + : K(SingleLocK), S(0), D(0), SM(&sm), LC(lc) { SourceLocation L = LC->getDecl()->getBodyRBrace(); R = SourceRange(L, L); } |