summaryrefslogtreecommitdiff
path: root/src/plugins/clangcodemodel/clangcodemodelplugin.cpp
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@theqtcompany.com>2015-08-31 16:28:26 +0200
committerMarco Bubke <marco.bubke@theqtcompany.com>2015-08-31 14:59:16 +0000
commitb278dc87ca8662ff98aeabc03ed4293021aab955 (patch)
tree4589ec81eb345979f52fd1fc7a293d4b0ea177d1 /src/plugins/clangcodemodel/clangcodemodelplugin.cpp
parent8dfa9a5dab144797e446b09979be98642403259a (diff)
downloadqt-creator-b278dc87ca8662ff98aeabc03ed4293021aab955.tar.gz
Clang: Add diagnostics
Diagnostics are now moved to the clang backend process. Fixits are supported too. Change-Id: I20faacf466bbf78dec479220c3d7b336a47bc453 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/plugins/clangcodemodel/clangcodemodelplugin.cpp')
-rw-r--r--src/plugins/clangcodemodel/clangcodemodelplugin.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp
index c6c42855a9..f935b2ca5a 100644
--- a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp
+++ b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp
@@ -31,6 +31,7 @@
#include "clangcodemodelplugin.h"
#include "clangprojectsettingspropertiespage.h"
+#include "constants.h"
#include "pchmanager.h"
#include "utils.h"
@@ -44,9 +45,19 @@
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h>
+#include <texteditor/textmark.h>
+
namespace ClangCodeModel {
namespace Internal {
+void initializeTextMarks()
+{
+ TextEditor::TextMark::setCategoryColor(Core::Id(Constants::CLANG_WARNING),
+ Utils::Theme::ProjectExplorer_TaskWarn_TextMarkColor);
+ TextEditor::TextMark::setCategoryColor(Core::Id(Constants::CLANG_ERROR),
+ Utils::Theme::ProjectExplorer_TaskError_TextMarkColor);
+}
+
bool ClangCodeModelPlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
Q_UNUSED(arguments)