summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolseditorsupport.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2013-08-09 11:43:20 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2013-08-19 13:01:07 +0200
commit073e5d6632c8f1a62b260d331aeebe5c35e58c18 (patch)
treed02b90373099ea4451f1cc9dc8767591c8cb59e0 /src/plugins/cpptools/cpptoolseditorsupport.h
parent480f7c09fc3a5cf0fa39a80c7d3e7377269e3224 (diff)
downloadqt-creator-073e5d6632c8f1a62b260d331aeebe5c35e58c18.tar.gz
C++: optionally let the highlighter handle ifdefed-out blocks.
Change-Id: I38cc0e55348cac0245d2ab8f3e39c68de76e3e6d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.h')
-rw-r--r--src/plugins/cpptools/cpptoolseditorsupport.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.h b/src/plugins/cpptools/cpptoolseditorsupport.h
index f3bce1b546..b8f066174a 100644
--- a/src/plugins/cpptools/cpptoolseditorsupport.h
+++ b/src/plugins/cpptools/cpptoolseditorsupport.h
@@ -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)