forked from qt-creator/qt-creator
C++: optionally let the highlighter handle ifdefed-out blocks.
Change-Id: I38cc0e55348cac0245d2ab8f3e39c68de76e3e6d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
480f7c09fc
commit
073e5d6632
@@ -86,6 +86,8 @@ class CPPTOOLS_EXPORT CppEditorSupport: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
typedef TextEditor::BlockRange BlockRange;
|
||||
|
||||
public:
|
||||
CppEditorSupport(Internal::CppModelManager *modelManager, TextEditor::BaseTextEditor *textEditor);
|
||||
virtual ~CppEditorSupport();
|
||||
@@ -97,6 +99,7 @@ public:
|
||||
|
||||
void setExtraDiagnostics(const QString &key,
|
||||
const QList<CPlusPlus::Document::DiagnosticMessage> &messages);
|
||||
void setIfdefedOutBlocks(const QList<BlockRange> &ifdefedOutBlocks);
|
||||
|
||||
/// True after the document was parsed/updated for the first time
|
||||
/// and the first semantic info calculation was started.
|
||||
@@ -136,7 +139,6 @@ private slots:
|
||||
void updateEditorNow();
|
||||
|
||||
private:
|
||||
typedef TextEditor::BaseTextEditorWidget::BlockRange BlockRange;
|
||||
struct EditorUpdates {
|
||||
EditorUpdates()
|
||||
: revision(-1)
|
||||
|
||||
Reference in New Issue
Block a user