forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user