summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-08-16 17:45:32 +0000
committerTed Kremenek <kremenek@apple.com>2012-08-16 17:45:32 +0000
commit9dcf671d1390694934a580dc6eda383e4be270b0 (patch)
tree92a926221b7c305d4d558bb35a3ada05138dd0c5 /clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
parent1e60273eedfe740c197c00ecc7d8e2b86425317c (diff)
downloadbcm5719-llvm-9dcf671d1390694934a580dc6eda383e4be270b0.tar.gz
bcm5719-llvm-9dcf671d1390694934a580dc6eda383e4be270b0.zip
Remove #if 0 that has been around for a long time.
llvm-svn: 162030
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
index c09bdf2b5e5..982bcbfcdf9 100644
--- a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
+++ b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
@@ -487,26 +487,6 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID,
E = Ranges.end(); I != E; ++I) {
HighlightRange(R, LPosInfo.first, *I);
}
-
-#if 0
- // If there is a code insertion hint, insert that code.
- // FIXME: This code is disabled because it seems to mangle the HTML
- // output. I'm leaving it here because it's generally the right idea,
- // but needs some help from someone more familiar with the rewriter.
- for (const FixItHint *Hint = P.fixit_begin(), *HintEnd = P.fixit_end();
- Hint != HintEnd; ++Hint) {
- if (Hint->RemoveRange.isValid()) {
- HighlightRange(R, LPosInfo.first, Hint->RemoveRange,
- "<span class=\"CodeRemovalHint\">", "</span>");
- }
- if (Hint->InsertionLoc.isValid()) {
- std::string EscapedCode = html::EscapeText(Hint->CodeToInsert, true);
- EscapedCode = "<span class=\"CodeInsertionHint\">" + EscapedCode
- + "</span>";
- R.InsertTextBefore(Hint->InsertionLoc, EscapedCode);
- }
- }
-#endif
}
static void EmitAlphaCounter(raw_ostream &os, unsigned n) {
OpenPOWER on IntegriCloud