forked from qt-creator/qt-creator
ClangCodeModel: Ignore built-in types
... in the semantic highlighter. The syntax highlighter already handles these. Change-Id: Ib1e80ec194021dbd2b4eca7a300db869ccddb7b0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -596,11 +596,8 @@ void ExtraHighlightingResultsCollector::collectFromNode(const ClangdAstNode &nod
|
||||
{
|
||||
if (node.kind().endsWith("Literal"))
|
||||
return;
|
||||
|
||||
if (node.role() == "type" && node.kind() == "Builtin") {
|
||||
insertResult(node, C_PRIMITIVE_TYPE);
|
||||
if (node.role() == "type" && node.kind() == "Builtin")
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_clangdVersion < 16 && node.role() == "attribute"
|
||||
&& (node.kind() == "Override" || node.kind() == "Final")) {
|
||||
|
||||
Reference in New Issue
Block a user