]> granicus.if.org Git - clang/commitdiff
Remove #if 0 that has been around for a long time.
authorTed Kremenek <kremenek@apple.com>
Thu, 16 Aug 2012 17:45:32 +0000 (17:45 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 16 Aug 2012 17:45:32 +0000 (17:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162030 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp

index c09bdf2b5e580f51fbf9b2dbf139c242c700752d..982bcbfcdf9aa7106a1edd8bc0d57f1c5d438215 100644 (file)
@@ -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) {