CPlusPlus: Add parser support for declarations of user-defined literals

... without a space before the identifier.

Change-Id: I977ffae82eb86f5ae6ea594cba17cc486e63bf6c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2024-08-06 17:06:10 +02:00
parent 5f3a343352
commit 9926de01c1
4 changed files with 22 additions and 14 deletions

View File

@@ -0,0 +1,7 @@
wchar_t operator ""_wc(const wchar_t c) { return c; }
int main()
{
const auto c = L'c'_wc;
return c;
}