Files
qt-creator/src/plugins/cppeditor/testcases/highlightingtestcase.cpp
Christian Kandeler 7c6a00b4e7 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>
2023-02-03 09:33:55 +00:00

24 lines
359 B
C++

auto func()
{
return R"(foo
foobar
R"notaprefix!(
barfoobar)" R"(second)" /* comment */ R"(third)";
}
void keywords()
{
bool b1 = true;
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;