summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PlistDiagnostics.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-22 22:26:10 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-22 22:26:10 +0000
commit63e29cc99c349e5fcc8828a084978b910615a5ad (patch)
tree5698ae439e520d0a916e4d9af6ecf1a5aba3d99c /clang/lib/Frontend/PlistDiagnostics.cpp
parentacfc76cc636f2dc46c921a4c7fa41d51d8bf447d (diff)
downloadbcm5719-llvm-63e29cc99c349e5fcc8828a084978b910615a5ad.tar.gz
bcm5719-llvm-63e29cc99c349e5fcc8828a084978b910615a5ad.zip
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. llvm-svn: 69834
Diffstat (limited to 'clang/lib/Frontend/PlistDiagnostics.cpp')
-rw-r--r--clang/lib/Frontend/PlistDiagnostics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PlistDiagnostics.cpp b/clang/lib/Frontend/PlistDiagnostics.cpp
index d67740aa9d6..7ad900e8741 100644
--- a/clang/lib/Frontend/PlistDiagnostics.cpp
+++ b/clang/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";
}
OpenPOWER on IntegriCloud