From 7be7d268148b84257c9626b53f58b5de4afb766c Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Thu, 12 Apr 2018 14:49:07 +0200 Subject: Clang: Show current editor diagnostics in issues pane This helps to deal with many diagnostics. Error diagnostics precede warning diagnostis to have them on top. If no CppEditor is active, no diagnostics are displayed. Previously one had to scroll the document up and down to locate the diagnostics. Now they are in a list and can be easily navigated with F6/Shift-F6. Also, at least for some diagnostics "Get Help Online" from the context menu seems to provide useful results. For example, triggering the action on clang tidy issues will open the web browser with some good hits explaining the issues. Change-Id: Idabe30b0961d893bee39ccee431e92aeeda1cc26 Reviewed-by: David Schulz --- src/plugins/clangcodemodel/clangcodemodelplugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/clangcodemodel/clangcodemodelplugin.cpp') diff --git a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp index cea921c3fe..b2c44f0e90 100644 --- a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp +++ b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include @@ -64,6 +65,9 @@ bool ClangCodeModelPlugin::initialize(const QStringList &arguments, QString *err Q_UNUSED(arguments); Q_UNUSED(errorMessage); + ProjectExplorer::TaskHub::addCategory(Constants::TASK_CATEGORY_DIAGNOSTICS, + tr("Clang Code Model")); + connect(ProjectExplorer::ProjectExplorerPlugin::instance(), &ProjectExplorer::ProjectExplorerPlugin::finishedInitialization, this, -- cgit v1.2.1