From 84cfca0f2b7634a3cb538368ff661ecead6d3666 Mon Sep 17 00:00:00 2001 From: Csaba Dabis Date: Wed, 5 Jun 2019 18:55:39 +0000 Subject: [PATCH] [analyzer] PathDiagnosticPopUpPiece: working with CharSourceRange Summary: Sometimes we are at character boundaries so past the token-range. llvm-svn: 362632 --- clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp index 8ede3f1..64c4269 100644 --- a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -612,7 +612,7 @@ HandlePopUpPieceStartTag(Rewriter &R, for (const auto &Range : PopUpRanges) { html::HighlightRange(R, Range.getBegin(), Range.getEnd(), "", "", - /*IsTokenRange=*/true); + /*IsTokenRange=*/false); } } @@ -644,12 +644,12 @@ static void HandlePopUpPieceEndTag(Rewriter &R, Out << "
"; html::HighlightRange(R, Range.getBegin(), Range.getEnd(), "", Buf.c_str(), - /*IsTokenRange=*/true); + /*IsTokenRange=*/false); // Otherwise inject just the new row at the end of the range. } else { html::HighlightRange(R, Range.getBegin(), Range.getEnd(), "", Buf.c_str(), - /*IsTokenRange=*/true); + /*IsTokenRange=*/false); } } -- 2.7.4