aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangtools/clangtoolslogfilereader.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <[email protected]>2019-11-04 14:44:36 +0100
committerNikolai Kosjar <[email protected]>2019-12-04 14:07:04 +0000
commit07ec6de8d94e1498407158525baba4be441a791c (patch)
tree78f7fd864dcd7857f86e020c7485871501c928b4 /src/plugins/clangtools/clangtoolslogfilereader.cpp
parent92bb42dd36394162a9badecf029234e1c343b5a7 (diff)
ClangTools: Improve filtering
Replace the filter line edit in the toolbar by a tool button that pop ups a dialog. In the dialog, the available checkers can be selectd/unselected to filter the diagnostic view. Also, the diagnostic view can be limited to diagnostics with fixits so that these can be selected and applied as the next step. For convience, add also some context menu entries to modify the filter with regard to the current diagnostic. Change-Id: Ifba3028805840658d72a39516c2b02da9864d4a6 Reviewed-by: Cristian Adam <[email protected]>
Diffstat (limited to 'src/plugins/clangtools/clangtoolslogfilereader.cpp')
-rw-r--r--src/plugins/clangtools/clangtoolslogfilereader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/clangtools/clangtoolslogfilereader.cpp b/src/plugins/clangtools/clangtoolslogfilereader.cpp
index 8c4211544b2..fc80a1b8299 100644
--- a/src/plugins/clangtools/clangtoolslogfilereader.cpp
+++ b/src/plugins/clangtools/clangtoolslogfilereader.cpp
@@ -432,8 +432,8 @@ Diagnostics readExportedDiagnostics(const Utils::FilePath &logFilePath,
Diagnostic diag;
diag.location = loc.toDiagnosticLocation();
diag.type = "warning";
- diag.description = asString(node["Message"]) + " ["
- + (asString(diagNode["DiagnosticName"])) + "]";
+ diag.name = asString(diagNode["DiagnosticName"]);
+ diag.description = asString(node["Message"]) + " [" + diag.name + "]";
// Process fixits/replacements
const YAML::Node &replacementsNode = node["Replacements"];