summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/HTMLDiagnostics.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-10 02:49:29 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-10 02:49:29 +0000
commit493a4242d96529d1bee59e9a3a6e10794b53437c (patch)
tree0f4510be228d963adde607f1f31c7b24d58caf6f /clang/lib/Frontend/HTMLDiagnostics.cpp
parent7ea58c355bab384d557f033b6b7b0430292f7e0b (diff)
downloadbcm5719-llvm-493a4242d96529d1bee59e9a3a6e10794b53437c.tar.gz
bcm5719-llvm-493a4242d96529d1bee59e9a3a6e10794b53437c.zip
Handle "Macro" PathDiagnosticPiece kind when getting string identifier.
llvm-svn: 66518
Diffstat (limited to 'clang/lib/Frontend/HTMLDiagnostics.cpp')
-rw-r--r--clang/lib/Frontend/HTMLDiagnostics.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Frontend/HTMLDiagnostics.cpp b/clang/lib/Frontend/HTMLDiagnostics.cpp
index 5fa5ab7f50c..02b327db2ad 100644
--- a/clang/lib/Frontend/HTMLDiagnostics.cpp
+++ b/clang/lib/Frontend/HTMLDiagnostics.cpp
@@ -159,8 +159,7 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) {
// Create a new rewriter to generate HTML.
Rewriter R(SMgr);
- // Process the path.
-
+ // Process the path.
unsigned n = D.size();
unsigned max = n;
@@ -376,7 +375,7 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID,
switch (*I) {
default:
++cnt;
- continue;
+ continue;
case ' ':
case '\t':
case '\n':
@@ -410,9 +409,9 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID,
// Now generate the message bubble.
const char *Kind = 0;
switch (P.getKind()) {
- default: break;
case PathDiagnosticPiece::Event: Kind = "Event"; break;
case PathDiagnosticPiece::ControlFlow: Kind = "Control"; break;
+ case PathDiagnosticPiece::Macro: Kind = "Macro"; break;
}
std::string sbuf;
OpenPOWER on IntegriCloud