Lines Matching refs:LitKind
4 enum class LitKind { enum
9 constexpr LitKind operator"" _kind(char p) { return LitKind::Char; } in operator ""_kind()
10 constexpr LitKind operator"" _kind(wchar_t p) { return LitKind::WideChar; } in operator ""_kind()
11 constexpr LitKind operator"" _kind(char16_t p) { return LitKind::Char16; } in operator ""_kind()
12 constexpr LitKind operator"" _kind(char32_t p) { return LitKind::Char32; } in operator ""_kind()
13 constexpr LitKind operator"" _kind(const char *p, size_t n) { return LitKind::CharStr; } in operator ""_kind()
14 constexpr LitKind operator"" _kind(const wchar_t *p, size_t n) { return LitKind::WideStr; } in operator ""_kind()
15 constexpr LitKind operator"" _kind(const char16_t *p, size_t n) { return LitKind::Char16Str; } in operator ""_kind()
16 constexpr LitKind operator"" _kind(const char32_t *p, size_t n) { return LitKind::Char32Str; } in operator ""_kind()
17 constexpr LitKind operator"" _kind(unsigned long long n) { return LitKind::Integer; } in operator ""_kind()
18 constexpr LitKind operator"" _kind(long double n) { return LitKind::Floating; } in operator ""_kind()
19 constexpr LitKind operator"" _kind2(const char *p) { return LitKind::Raw; } in operator ""_kind2()
20 template<char ...Cs> constexpr LitKind operator"" _kind3() { return LitKind::Template; } in operator ""_kind3()
22 static_assert('x'_kind == LitKind::Char, "");
23 static_assert(L'x'_kind == LitKind::WideChar, "");
24 static_assert(u'x'_kind == LitKind::Char16, "");
25 static_assert(U'x'_kind == LitKind::Char32, "");
26 static_assert("foo"_kind == LitKind::CharStr, "");
27 static_assert(u8"foo"_kind == LitKind::CharStr, "");
28 static_assert(L"foo"_kind == LitKind::WideStr, "");
29 static_assert(u"foo"_kind == LitKind::Char16Str, "");
30 static_assert(U"foo"_kind == LitKind::Char32Str, "");
31 static_assert(194_kind == LitKind::Integer, "");
32 static_assert(0377_kind == LitKind::Integer, "");
33 static_assert(0x5ffc_kind == LitKind::Integer, "");
34 static_assert(.5954_kind == LitKind::Floating, "");
35 static_assert(1._kind == LitKind::Floating, "");
36 static_assert(1.e-2_kind == LitKind::Floating, "");
37 static_assert(4e6_kind == LitKind::Floating, "");
38 static_assert(4e6_kind2 == LitKind::Raw, "");
39 static_assert(4e6_kind3 == LitKind::Template, "");