diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-04-22 22:26:10 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-04-22 22:26:10 +0000 |
commit | 4c5fcd946971756bd644fe76511f292e10225981 (patch) | |
tree | 6a15883bf336594d33d0110a58a91e6264ba7b64 /lib/Frontend/PlistDiagnostics.cpp | |
parent | 14c22f20c077cecd68581952a0c227f8c180be03 (diff) |
Add PathDiagnosticRange to PathDiagnostics. These simply wrap SourceRange and
indicate whether or not the range represents an absolute range or should be
extended by lexing to the end of the token.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PlistDiagnostics.cpp')
-rw-r--r-- | lib/Frontend/PlistDiagnostics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/PlistDiagnostics.cpp b/lib/Frontend/PlistDiagnostics.cpp index d67740aa9d..7ad900e874 100644 --- a/lib/Frontend/PlistDiagnostics.cpp +++ b/lib/Frontend/PlistDiagnostics.cpp @@ -111,11 +111,11 @@ static void EmitLocation(llvm::raw_ostream& o, const SourceManager &SM, static void EmitRange(llvm::raw_ostream& o, const SourceManager &SM, const LangOptions &LangOpts, - SourceRange R, const FIDMap &FM, + PathDiagnosticRange R, const FIDMap &FM, unsigned indent) { Indent(o, indent) << "<array>\n"; EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1); - EmitLocation(o, SM, LangOpts, R.getEnd(), FM, indent+1, true); + EmitLocation(o, SM, LangOpts, R.getEnd(), FM, indent+1, !R.isPoint); Indent(o, indent) << "</array>\n"; } |