forked from qt-creator/qt-creator
Clang: Use completion through backend process
This makes us independent of libclang crashes for completion.
Re-parsing for highlighting still happens in the Qt Creator process.
Run in verbose mode:
qtc.clangcodemodel.ipc=true
Run tests:
-test "ClangCodeModel"
Task-number: QTCREATORBUG-14108
Task-number: QTCREATORBUG-12819
Change-Id: Id3e95bd2afdb6508bbd1d35fddc69534a909b905
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -12,6 +12,12 @@ QtcPlugin {
|
||||
Depends { name: "ProjectExplorer" }
|
||||
Depends { name: "TextEditor" }
|
||||
Depends { name: "Utils" }
|
||||
Depends { name: "CodeModelBackEndIpc" }
|
||||
|
||||
pluginTestDepends: [
|
||||
"CppEditor",
|
||||
"QmakeProjectManager",
|
||||
]
|
||||
|
||||
property bool clangCompletion: true
|
||||
property bool clangHighlighting: true
|
||||
@@ -89,6 +95,10 @@ QtcPlugin {
|
||||
"clangcompletion_test.cpp",
|
||||
"completiontesthelper.cpp",
|
||||
"completiontesthelper.h",
|
||||
"clangcodecompletion_test.cpp",
|
||||
"clangcodecompletion_test.h",
|
||||
"clangcompletioncontextanalyzertest.cpp",
|
||||
"clangcompletioncontextanalyzertest.h",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -97,6 +107,13 @@ QtcPlugin {
|
||||
prefix: "test/"
|
||||
fileTags: "none"
|
||||
files: [
|
||||
"mysource.cpp",
|
||||
"myheader.h",
|
||||
"completionWithProject.cpp",
|
||||
"memberCompletion.cpp",
|
||||
"doxygenKeywordsCompletion.cpp",
|
||||
"preprocessorKeywordsCompletion.cpp",
|
||||
"includeDirectiveCompletion.cpp",
|
||||
"cxx_regression_1.cpp",
|
||||
"cxx_regression_2.cpp",
|
||||
"cxx_regression_3.cpp",
|
||||
@@ -118,6 +135,8 @@ QtcPlugin {
|
||||
|
||||
files: [
|
||||
"clang_global.h",
|
||||
"clangcompletioncontextanalyzer.cpp",
|
||||
"clangcompletioncontextanalyzer.h",
|
||||
"clangeditordocumentparser.cpp",
|
||||
"clangeditordocumentparser.h",
|
||||
"clangeditordocumentprocessor.cpp",
|
||||
@@ -133,6 +152,10 @@ QtcPlugin {
|
||||
"clangprojectsettingspropertiespage.ui",
|
||||
"clangutils.cpp",
|
||||
"clangutils.h",
|
||||
"codemodelbackendipcintegration.cpp",
|
||||
"codemodelbackendipcintegration.h",
|
||||
"completionchunkstotextconverter.cpp",
|
||||
"completionchunkstotextconverter.h",
|
||||
"constants.h",
|
||||
"cxprettyprinter.cpp",
|
||||
"cxprettyprinter.h",
|
||||
|
||||
Reference in New Issue
Block a user