| /llvm-project-15.0.7/clang/test/CXX/stmt.stmt/stmt.select/stmt.if/ |
| H A D | p4.cpp | 6 if consteval { in test_consteval() 11 if consteval { in test_consteval() 18 if consteval { in test_consteval() 26 if !consteval { in test_consteval() 85 if consteval { 94 if !consteval { 108 if consteval { 121 if consteval { 127 if !consteval { 137 if consteval { [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | cxx2a-consteval.cpp | 7 consteval int f1(int i) { in f1() 32 consteval A(int i); 33 consteval A() = default; 118 consteval ~A() {} in ~A() 125 consteval int f() { in f() 182 consteval int f() { in f() 226 consteval int f(int) { in f() 325 consteval int f() { in f() 707 consteval int d() { in d() 729 consteval S() {} in S() [all …]
|
| H A D | consteval-return-void.cpp | 3 consteval int Fun() { return; } // expected-error {{non-void consteval function 'Fun' should return… in Fun() 5 template <typename T> consteval int FunT1() { return; } // expected-error {{non-void consteval func… in FunT1() 6 template <typename T> consteval int FunT2() { return 0; } in FunT2() 7 template <> consteval int FunT2<double>() { return 0; } in FunT2() 8 template <> consteval int FunT2<int>() { return; } // expected-error {{non-void consteval function … in FunT2() 13 consteval E operator-(E,E) { return; } // expected-error {{non-void consteval function 'operator-'… in operator -() 15 template <typename T> consteval E operator-(E,E) { return; } // expected-error {{non-void consteval… in operator -() 18 template <typename T> consteval E operator/(E,E); 22 consteval void no_return() {} in no_return() 23 consteval void with_return() { return; } in with_return() [all …]
|
| H A D | cxx2b-consteval-if.cpp | 5 if consteval { return 0; } in f() 6 …if !consteval { return 0.0; } // expected-error {{'auto' in return type deduced as 'double' here b… in f() 10 if !consteval { return 0; } 11 …if consteval { return 0.0; } // expected-error {{'auto' in return type deduced as 'double' here b… 15 if consteval { return 0; } 16 if !consteval { return 0; } // okay 20 if consteval { 21 if consteval { // expected-warning {{consteval if is always true in an immediate context}} 45 consteval int *make() { return new int; } 48 if consteval {
|
| H A D | cxx2a-compat.cpp | 61 auto l = []() consteval {}; in __anon0383bed20102() 62 int consteval();
|
| /llvm-project-15.0.7/clang/test/ASTMerge/APValue/ |
| H A D | APValue.cpp | 11 consteval int fint() { in fint() 54 consteval B fB() { in fB() 78 consteval A fA() { in fA() 98 consteval v4si fv4si() { in fv4si() 116 consteval B fint() { in fint() 137 consteval C fA() { in fA() 151 consteval D fv4si() { in fv4si() 179 consteval U fU1() { in fU1() 188 consteval U fU() { in fU() 302 consteval D fA() { in fA() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | cxx2a-consteval.cpp | 17 consteval int ret7() { in ret7() 39 consteval const int &retI() { in retI() 62 consteval const int *retIPtr() { in retIPtr() 85 consteval const int &&retIRRef() { in retIRRef() 113 consteval Agg retAgg() { in retAgg() 139 consteval const Agg &retRefAgg() { in retRefAgg() 163 consteval Agg is_const() { in is_const() 187 consteval AggCtor(int a = 3, long b = 5) : a(a * a), b(a * b) {} in AggCtor() 216 consteval operator int() const noexcept { return 42; } in operator int() 245 consteval int test_UserConvOverload_helper_ceval(int a) { return a; } in test_UserConvOverload_helper_ceval() [all …]
|
| H A D | vtable-consteval.cpp | 11 virtual consteval void DoNotEmit_f() {} in DoNotEmit_f() 21 virtual consteval void DoNotEmit_g() {} in DoNotEmit_g() 32 virtual consteval C &operator=(const C&) = default; 54 struct F : E { virtual consteval void DoNotEmit_g(); };
|
| H A D | cxx2b-consteval-if.cpp | 9 if consteval { in f() 15 if !consteval { in f() 19 if !consteval { in f() 33 if consteval { return true; } else { return false; }
|
| H A D | cxx20-consteval-crash.cpp | 6 consteval auto& X() { return x_; } in X() 18 consteval X g() { return {0}; } in g() 29 inline consteval unsigned char operator""_UC(const unsigned long long n) { in operator ""_UC()
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | ast-dump-constant-expr.cpp | 33 consteval int test_Int() { return 42; } in test_Int() 34 consteval float test_Float() { return 1.0f; } in test_Float() 35 consteval _Complex int test_ComplexInt() { return 1+2i; } in test_ComplexInt() 36 consteval _Complex float test_ComplexFloat() { return 1.2f+3.4fi; } in test_ComplexFloat() 37 consteval __int128 test_Int128() { return (__int128)0xFFFFFFFFFFFFFFFF + (__int128)1; } in test_Int128() 56 consteval void consteval_method() {} in consteval_method()
|
| H A D | ast-dump-if-json.cpp | 28 if consteval {} in func() 30 if consteval {} else {} in func() 32 if not consteval {} in func() 34 if not consteval {} else {} in func()
|
| H A D | ast-dump-stmt.cpp | 158 if consteval {} in TestIf() 162 if ! consteval {} in TestIf()
|
| /llvm-project-15.0.7/libcxx/include/__format/ |
| H A D | format_arg_store.h | 37 consteval __arg_t __determine_arg_t(); 41 consteval __arg_t __determine_arg_t() { in __determine_arg_t() 47 consteval __arg_t __determine_arg_t() { in __determine_arg_t() 53 consteval __arg_t __determine_arg_t() { in requires() 60 consteval __arg_t __determine_arg_t() { in __determine_arg_t() 75 consteval __arg_t __determine_arg_t() { in __determine_arg_t() 90 consteval __arg_t __determine_arg_t() { in __determine_arg_t() 94 consteval __arg_t __determine_arg_t() { in __determine_arg_t() 98 consteval __arg_t __determine_arg_t() { in __determine_arg_t() 105 consteval __arg_t __determine_arg_t() { in __determine_arg_t() [all …]
|
| H A D | formatter_integral.h | 162 consteval size_t __buffer_size() noexcept in __buffer_size() 171 consteval size_t __buffer_size() noexcept in __buffer_size() 182 consteval size_t __buffer_size() noexcept in __buffer_size() 191 consteval size_t __buffer_size() noexcept in __buffer_size()
|
| /llvm-project-15.0.7/clang/test/AST/Interp/ |
| H A D | if_consteval.cpp | 7 if consteval { in f() 14 if consteval { in f() 18 if !consteval { in f() 22 if !consteval { in f()
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | cxx0x-decl.cpp | 167 consteval constexpr int f1(); // expected-error {{cannot combine with previous 'consteval'}} 168 constexpr consteval int f2(); // expected-error {{cannot combine with previous 'constexpr'}} 169 consteval consteval int f3(); // expected-error {{duplicate 'consteval' declaration specifier}} 171 constinit consteval int wat = 0; // expected-error {{cannot combine with previous 'constinit'}} 172 consteval constinit int huh(); // expected-error {{cannot combine with previous 'consteval'}}
|
| /llvm-project-15.0.7/clang/test/Modules/ |
| H A D | redundant-template-default-arg3.cpp | 38 consteval int getInt() { in getInt() 58 consteval int *getIntPtr() { in getIntPtr() 64 consteval void *getVoidPtr() { in getVoidPtr() 81 consteval int getInt2() { in getInt2()
|
| /llvm-project-15.0.7/clang/test/CXX/basic/basic.def.odr/ |
| H A D | p2-typeid.cpp | 50 consteval S *null_s() { return nullptr; } in null_s() 51 consteval S *make_s() { return new S; } in make_s() 52 consteval T *null_t() { return nullptr; } in null_t() 53 consteval T *make_t() { return new T; } // #alloc in make_t()
|
| /llvm-project-15.0.7/clang/test/CoverageMapping/ |
| H A D | if.cpp | 19 if consteval { in check_consteval() 22 if !consteval { in check_consteval() 25 if consteval { in check_consteval()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.req/range.sized/ |
| H A D | subsumption.compile.pass.cpp | 18 consteval bool check_subsumption() { in check_subsumption() 23 consteval bool check_subsumption() { in check_subsumption()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.req/range.range/ |
| H A D | borrowed_range.subsumption.compile.pass.cpp | 17 consteval bool check_subsumption() { in check_subsumption() 22 consteval bool check_subsumption() { in check_subsumption()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | string_literal.h | 30 consteval /*implicit*/ string_literal(const char (&str)[N + 1]) { in string_literal() 38 consteval std::basic_string_view<CharT> sv() const { in sv()
|
| /llvm-project-15.0.7/clang/test/Lexer/ |
| H A D | cxx2a_keyword_as_cxx17.cpp | 14 int consteval = 0; // expected-warning {{'consteval' is a keyword in C++20}}
|
| /llvm-project-15.0.7/libcxx/include/__algorithm/ |
| H A D | ranges_iterator_concept.h | 28 consteval auto __get_iterator_concept() { in __get_iterator_concept()
|