ClangCodeModel: Highlight Q_PROPERTY declarations with clangd

We re-use the moc parser for this purpose.

Change-Id: Ib0ef4f727d1f0b862a202a95a3ae9c551cb502a5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-11-26 12:54:50 +01:00
parent 6db5faa2e8
commit 0f9aa307a3
18 changed files with 4050 additions and 9 deletions

View File

@@ -66,6 +66,8 @@ QtcPlugin {
"clangdiagnostictooltipwidget.h",
"clangdlocatorfilters.cpp",
"clangdlocatorfilters.h",
"clangdqpropertyhighlighter.cpp",
"clangdqpropertyhighlighter.h",
"clangdquickfixfactory.cpp",
"clangdquickfixfactory.h",
"clangeditordocumentparser.cpp",
@@ -106,6 +108,29 @@ QtcPlugin {
"clangutils.h",
]
Group {
name: "moc sources"
prefix: "moc/"
files: [
"parser.cpp",
"parser.h",
"preprocessor.cpp",
"preprocessor.h",
"symbols.h",
"token.cpp",
"token.h",
"utils.h",
]
Group {
name: "weirdly-named moc headers"
files: [
"keywords.cpp",
"ppkeywords.cpp",
]
fileTags: "hpp"
}
}
Group {
name: "Tests"
condition: qtc.testsEnabled