[cfe-commits] r65877 - in /cfe/trunk/lib: Frontend/HTMLDiagnostics.cpp Rewrite/HTMLRewrite.cpp
Ted Kremenek
kremenek at apple.com
Mon Mar 2 13:42:01 PST 2009
Author: kremenek
Date: Mon Mar 2 15:42:01 2009
New Revision: 65877
URL: http://llvm.org/viewvc/llvm-project?rev=65877&view=rev
Log:
Update HTML diagnostics to honor the different between 'event' and 'control-flow' diagnostics.
Modified:
cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp
cfe/trunk/lib/Rewrite/HTMLRewrite.cpp
Modified: cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp?rev=65877&r1=65876&r2=65877&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp (original)
+++ cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp Mon Mar 2 15:42:01 2009
@@ -418,7 +418,13 @@
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 << "\">";
Modified: cfe/trunk/lib/Rewrite/HTMLRewrite.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/HTMLRewrite.cpp?rev=65877&r1=65876&r2=65877&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/HTMLRewrite.cpp (original)
+++ cfe/trunk/lib/Rewrite/HTMLRewrite.cpp Mon Mar 2 15:42:01 2009
@@ -307,15 +307,16 @@
" .num { color:#444444 }\n"
" .line { padding-left: 1ex; border-left: 3px solid #ccc }\n"
" .line { white-space: pre }\n"
- " .msg { background-color:#fff8b4; color:#000000 }\n"
" .msg { -webkit-box-shadow:1px 1px 7px #000 }\n"
" .msg { -webkit-border-radius:5px }\n"
" .msg { font-family:Helvetica, sans-serif; font-size: smaller }\n"
- " .msg { font-weight: bold }\n"
" .msg { float:left }\n"
" .msg { padding:0.5em 1ex 0.5em 1ex }\n"
" .msg { margin-top:10px; margin-bottom:10px }\n"
+ " .msg { font-weight:bold }\n"
" .msg { max-width:60em; word-wrap: break-word; white-space: pre-wrap;}\n"
+ " .msgEvent { background-color:#fff8b4; color:#000000 }\n"
+ " .msgControl { background-color:#bbbbbb; color:#444444 }\n"
" .mrange { background-color:#dfddf3 }\n"
" .mrange { border-bottom:1px solid #6F9DBE }\n"
" .PathIndex { font-weight: bold }\n"
More information about the cfe-commits
mailing list