aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangtextmark.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2017-07-10 09:53:34 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2017-07-10 12:32:07 +0000
commite1de989e16ee913dca41062d26313f675e1bdfcc (patch)
tree65dfd2adcd36ae8c3f19fd4f3645097ae97767c8 /src/plugins/clangcodemodel/clangtextmark.h
parentdc1bdc9bec1fdd8ce88934830793a48904908832 (diff)
Clang: Show inline diagnostics only for project files
When navigating to headers that are not part of the project, avoid showing the inline diagnostics. In most cases, these files can't be changed. This helps also for the session-load case where files are opened/parsed when no project information is available yet. Change-Id: I7fce24af78b3b1efbf64dd27d8ca2a053e02d4ec Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel/clangtextmark.h')
-rw-r--r--src/plugins/clangcodemodel/clangtextmark.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/clangcodemodel/clangtextmark.h b/src/plugins/clangcodemodel/clangtextmark.h
index 0342fd1a62..ae5478168a 100644
--- a/src/plugins/clangcodemodel/clangtextmark.h
+++ b/src/plugins/clangcodemodel/clangtextmark.h
@@ -41,7 +41,8 @@ public:
ClangTextMark(const QString &fileName,
const ClangBackEnd::DiagnosticContainer &diagnostic,
- const RemovedFromEditorHandler &removedHandler);
+ const RemovedFromEditorHandler &removedHandler,
+ bool showLineAnnotations);
void updateIcon(bool valid = true);
private: