diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-02 21:42:01 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-02 21:42:01 +0000 |
commit | 2f10398814e8d58cce029a7e73af21bb274dcd42 (patch) | |
tree | 4dd4389ae2175e6de862dcb0815a66fdeab910fc /lib/Frontend/HTMLDiagnostics.cpp | |
parent | 025fedcbb98870e7739c942cee68c6f1c512bc46 (diff) |
Update HTML diagnostics to honor the different between 'event' and 'control-flow' diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/HTMLDiagnostics.cpp')
-rw-r--r-- | lib/Frontend/HTMLDiagnostics.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Frontend/HTMLDiagnostics.cpp b/lib/Frontend/HTMLDiagnostics.cpp index cb05e55a43..9996fbbcd7 100644 --- a/lib/Frontend/HTMLDiagnostics.cpp +++ b/lib/Frontend/HTMLDiagnostics.cpp @@ -418,7 +418,13 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID, else os << "Path" << num; - os << "\" class=\"msg\" style=\"margin-left:" << PosNo << "ex"; + os << "\" class=\"msg"; + switch (P.getKind()) { + default: break; + case PathDiagnosticPiece::Event: os << " msgEvent"; break; + case PathDiagnosticPiece::ControlFlow: os << " msgControl"; break; + } + os << "\" style=\"margin-left:" << PosNo << "ex"; if (em < max_line/2) os << "; max-width:" << em << "em"; os << "\">"; |