Home | History | Annotate | Download | only in Parser

Lines Matching full:operator

41 constexpr char operator"" _id(char c) { return c; }
42 constexpr wchar_t operator"" _id(wchar_t c) { return c; }
43 constexpr char16_t operator"" _id(char16_t c) { return c; }
44 constexpr char32_t operator"" _id(char32_t c) { return c; }
47 constexpr const char operator"" _id(const char *p, size_t n) { return *p; }
48 constexpr const wchar_t operator"" _id(const wchar_t *p, size_t n) { return *p; }
49 constexpr const char16_t operator"" _id(const char16_t *p, size_t n) { return *p; }
50 constexpr const char32_t operator"" _id(const char32_t *p, size_t n) { return *p; }
52 constexpr unsigned long long operator"" _id(unsigned long long n) { return n; }
53 constexpr long double operator"" _id(long double d) { return d; }
80 _no_such_suffix // expected-error {{'operator "" _no_such_suffix'}}
86 _no_such_suffix; // expected-error {{'operator "" _no_such_suffix'}}
90 _no_such_suffix; // expected-error {{'operator "" _no_such_suffix'}}
94 _no_such_suffix; // expected-error {{'operator "" _no_such_suffix'}}
98 void operator "\
101 void operator R"xyzzy()xyzzy" _foo(long double); // ok
103 void operator"" "" R"()" "" _foo(const char *); // ok
106 void operator "\0" _non_empty(const char *); // expected-error {{must be '""'}}
107 void operator ""_no_space(const char *); // expected-error {{C++11 requires a space}}
108 void operator L"" _not_char(const char *); // expected-error {{cannot have an encoding prefix}}
109 void operator "" ""
112 void operator "" u8"" "\u0123" "hello"_all_of_the_things ""(const char*); // expected-error {{must be '""'}}