aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/baseeditordocumentprocessor.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2016-10-04 16:23:42 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2016-10-11 14:01:14 +0000
commit9d55d8485cda7077d1280f3335102ffd036240b5 (patch)
tree5a0485198a1a72f23b2de4206bf40bb540208319 /src/plugins/cpptools/baseeditordocumentprocessor.h
parentcb24872f439a92e7ab0d6ed6919c9c253707c3d9 (diff)
Clang: Show info bar for parse errors in header files
...because those errors can lead to a substantial performance/functional regression. The actual diagnostics (possibly with children) are shown as details in the info bar. The info bar can be hidden with the "Do Not Show Again" button. Re-enabling the info bar is possible with the new editor tool bar button. Change-Id: I03394ff8e3c84127946b0b791930b28a385f5a46 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpptools/baseeditordocumentprocessor.h')
-rw-r--r--src/plugins/cpptools/baseeditordocumentprocessor.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/cpptools/baseeditordocumentprocessor.h b/src/plugins/cpptools/baseeditordocumentprocessor.h
index da6a20ca94..3ac8a3524d 100644
--- a/src/plugins/cpptools/baseeditordocumentprocessor.h
+++ b/src/plugins/cpptools/baseeditordocumentprocessor.h
@@ -37,6 +37,8 @@
#include <QTextEdit>
+#include <functional>
+
namespace TextEditor {
class TextDocument;
class QuickFixOperations;
@@ -69,10 +71,15 @@ public:
virtual void editorDocumentTimerRestarted();
+public:
+ using HeaderErrorDiagnosticWidgetCreator = std::function<QWidget*()>;
+
signals:
+
// Signal interface to implement
void codeWarningsUpdated(unsigned revision,
const QList<QTextEdit::ExtraSelection> selections,
+ const HeaderErrorDiagnosticWidgetCreator &creator,
const TextEditor::RefactorMarkers &refactorMarkers);
void ifdefedOutBlocksUpdated(unsigned revision,