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,12 +297,8 @@ void doSemanticHighlighting(
|
||||
const ClangdAstPath path = getAstPath(ast, tokenRange(token));
|
||||
if (path.length() > 1) {
|
||||
const ClangdAstNode declNode = path.at(path.length() - 2);
|
||||
if (declNode.kind() == "Function" || declNode.kind() == "CXXMethod") {
|
||||
if (clangdVersion < QVersionNumber(14)
|
||||
&& declNode.arcanaContains("' virtual")) {
|
||||
styles.mainStyle = C_VIRTUAL_METHOD;
|
||||
}
|
||||
if (declNode.hasChildWithRole("statement"))
|
||||
if ((declNode.kind() == "Function" || declNode.kind() == "CXXMethod")
|
||||
&& declNode.hasChildWithRole("statement")) {
|
||||
styles.mixinStyles.push_back(C_FUNCTION_DEFINITION);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user