aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangdiagnostictooltipwidget.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/clangcodemodel/clangdiagnostictooltipwidget.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/clangcodemodel/clangdiagnostictooltipwidget.h')
-rw-r--r--src/plugins/clangcodemodel/clangdiagnostictooltipwidget.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/clangcodemodel/clangdiagnostictooltipwidget.h b/src/plugins/clangcodemodel/clangdiagnostictooltipwidget.h
index 600ccf22d83..839952fc774 100644
--- a/src/plugins/clangcodemodel/clangdiagnostictooltipwidget.h
+++ b/src/plugins/clangcodemodel/clangdiagnostictooltipwidget.h
@@ -34,7 +34,15 @@ QT_END_NAMESPACE
namespace ClangCodeModel {
namespace Internal {
-void addToolTipToLayout(const ClangBackEnd::DiagnosticContainer &diagnostic, QLayout *target);
+struct DisplayHints {
+ bool showMainDiagnosticHeader = true;
+ bool showFileNameInMainDiagnostic = false;
+ bool enableClickableFixits = true;
+};
+
+void addToolTipToLayout(const ClangBackEnd::DiagnosticContainer &diagnostic,
+ QLayout *target,
+ const DisplayHints &displayHints = DisplayHints());
} // namespace Internal
} // namespace ClangCodeModel