From 3abaf647d0c632a4dfcb00d9ad2d1ffe66e014d9 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Mon, 3 Sep 2018 16:10:43 +0200 Subject: Add system include path to HeaderPath and merge ProjectPartHeaderPath System include paths are appended after other includes by the compiler. So we should set them as system includes and not as normal includes. Otherwise we change the include order. Headers in system include paths are not cluttering the screen with unwanted warning and by the way improve performance too. ProjectPartHeaderPath was a dopperganger of HeaderPath, so we merged them. Change-Id: I7c394b4098b697de79761499ffcd5913cc02d652 Reviewed-by: Tobias Hunger --- src/plugins/cpptools/cppcompletion_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cppcompletion_test.cpp') diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp index 4abc2ccbd3..41a2865011 100644 --- a/src/plugins/cpptools/cppcompletion_test.cpp +++ b/src/plugins/cpptools/cppcompletion_test.cpp @@ -109,7 +109,7 @@ public: = new CppCompletionAssistInterface(m_editorWidget->textDocument()->filePath().toString(), m_textDocument, m_position, ExplicitlyInvoked, m_snapshot, - ProjectPartHeaderPaths(), + ProjectExplorer::HeaderPaths(), languageFeatures); ai->prepareForAsyncUse(); ai->recreateTextDocument(); -- cgit v1.2.1