forked from qt-creator/qt-creator
ClangCodeModel: Remove redundant clangd version check
This was forgotten in 780f89b377
.
Change-Id: I645e96bafcb2d431e74a7f203e911bbb062fb747
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -297,13 +297,9 @@ void doSemanticHighlighting(
|
|||||||
const ClangdAstPath path = getAstPath(ast, tokenRange(token));
|
const ClangdAstPath path = getAstPath(ast, tokenRange(token));
|
||||||
if (path.length() > 1) {
|
if (path.length() > 1) {
|
||||||
const ClangdAstNode declNode = path.at(path.length() - 2);
|
const ClangdAstNode declNode = path.at(path.length() - 2);
|
||||||
if (declNode.kind() == "Function" || declNode.kind() == "CXXMethod") {
|
if ((declNode.kind() == "Function" || declNode.kind() == "CXXMethod")
|
||||||
if (clangdVersion < QVersionNumber(14)
|
&& declNode.hasChildWithRole("statement")) {
|
||||||
&& declNode.arcanaContains("' virtual")) {
|
styles.mixinStyles.push_back(C_FUNCTION_DEFINITION);
|
||||||
styles.mainStyle = C_VIRTUAL_METHOD;
|
|
||||||
}
|
|
||||||
if (declNode.hasChildWithRole("statement"))
|
|
||||||
styles.mixinStyles.push_back(C_FUNCTION_DEFINITION);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user