ClangCodeModel: Ignore number literals

... in the semantic highlighter. The syntax highlighter already handles
these.

Change-Id: I26f6bca06c4fc648ffe59bd9e3639d81d2265755
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:
Christian Kandeler
2023-01-31 18:13:42 +01:00
parent 8655603c2e
commit 7c6a00b4e7
4 changed files with 21 additions and 25 deletions

View File

@@ -12,3 +12,12 @@ void keywords()
bool b2 = false;
void *p = nullptr;
}
void numberLiterals()
{
auto integer = 1;
auto numFloat1 = 1.2f;
auto numFloat2 = 1.2;
}
template<int n = 5> class C;