head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC4:1.1.1.8 netbsd-11-0-RC3:1.1.1.8 netbsd-11-0-RC2:1.1.1.8 netbsd-11-0-RC1:1.1.1.8 perseant-exfatfs-base-20250801:1.1.1.8 netbsd-11:1.1.1.8.0.10 netbsd-11-base:1.1.1.8 netbsd-10-1-RELEASE:1.1.1.8 perseant-exfatfs-base-20240630:1.1.1.8 perseant-exfatfs:1.1.1.8.0.8 perseant-exfatfs-base:1.1.1.8 netbsd-8-3-RELEASE:1.1.1.4 netbsd-9-4-RELEASE:1.1.1.7 netbsd-10-0-RELEASE:1.1.1.8 netbsd-10-0-RC6:1.1.1.8 netbsd-10-0-RC5:1.1.1.8 netbsd-10-0-RC4:1.1.1.8 netbsd-10-0-RC3:1.1.1.8 netbsd-10-0-RC2:1.1.1.8 netbsd-10-0-RC1:1.1.1.8 netbsd-10:1.1.1.8.0.6 netbsd-10-base:1.1.1.8 netbsd-9-3-RELEASE:1.1.1.7 cjep_sun2x:1.1.1.8.0.4 cjep_sun2x-base:1.1.1.8 cjep_staticlib_x-base1:1.1.1.8 netbsd-9-2-RELEASE:1.1.1.7 cjep_staticlib_x:1.1.1.8.0.2 cjep_staticlib_x-base:1.1.1.8 netbsd-9-1-RELEASE:1.1.1.7 phil-wifi-20200421:1.1.1.8 phil-wifi-20200411:1.1.1.8 phil-wifi-20200406:1.1.1.8 netbsd-8-2-RELEASE:1.1.1.4 netbsd-9-0-RELEASE:1.1.1.7 netbsd-9-0-RC2:1.1.1.7 netbsd-9-0-RC1:1.1.1.7 netbsd-9:1.1.1.7.0.2 netbsd-9-base:1.1.1.7 phil-wifi-20190609:1.1.1.7 netbsd-8-1-RELEASE:1.1.1.4 netbsd-8-1-RC1:1.1.1.4 pgoyette-compat-merge-20190127:1.1.1.6.2.1 pgoyette-compat-20190127:1.1.1.7 pgoyette-compat-20190118:1.1.1.7 pgoyette-compat-1226:1.1.1.7 pgoyette-compat-1126:1.1.1.7 pgoyette-compat-1020:1.1.1.7 pgoyette-compat-0930:1.1.1.7 pgoyette-compat-0906:1.1.1.7 netbsd-7-2-RELEASE:1.1.1.1.6.1 pgoyette-compat-0728:1.1.1.7 clang-337282:1.1.1.7 netbsd-8-0-RELEASE:1.1.1.4 phil-wifi:1.1.1.6.0.4 phil-wifi-base:1.1.1.6 pgoyette-compat-0625:1.1.1.6 netbsd-8-0-RC2:1.1.1.4 pgoyette-compat-0521:1.1.1.6 pgoyette-compat-0502:1.1.1.6 pgoyette-compat-0422:1.1.1.6 netbsd-8-0-RC1:1.1.1.4 pgoyette-compat-0415:1.1.1.6 pgoyette-compat-0407:1.1.1.6 pgoyette-compat-0330:1.1.1.6 pgoyette-compat-0322:1.1.1.6 pgoyette-compat-0315:1.1.1.6 netbsd-7-1-2-RELEASE:1.1.1.1.6.1 pgoyette-compat:1.1.1.6.0.2 pgoyette-compat-base:1.1.1.6 netbsd-7-1-1-RELEASE:1.1.1.1.6.1 clang-319952:1.1.1.6 matt-nb8-mediatek:1.1.1.4.0.10 matt-nb8-mediatek-base:1.1.1.4 clang-309604:1.1.1.5 perseant-stdc-iso10646:1.1.1.4.0.8 perseant-stdc-iso10646-base:1.1.1.4 netbsd-8:1.1.1.4.0.6 netbsd-8-base:1.1.1.4 prg-localcount2-base3:1.1.1.4 prg-localcount2-base2:1.1.1.4 prg-localcount2-base1:1.1.1.4 prg-localcount2:1.1.1.4.0.4 prg-localcount2-base:1.1.1.4 pgoyette-localcount-20170426:1.1.1.4 bouyer-socketcan-base1:1.1.1.4 pgoyette-localcount-20170320:1.1.1.4 netbsd-7-1:1.1.1.1.6.1.0.6 netbsd-7-1-RELEASE:1.1.1.1.6.1 netbsd-7-1-RC2:1.1.1.1.6.1 clang-294123:1.1.1.4 netbsd-7-nhusb-base-20170116:1.1.1.1.6.1 bouyer-socketcan:1.1.1.4.0.2 bouyer-socketcan-base:1.1.1.4 clang-291444:1.1.1.4 pgoyette-localcount-20170107:1.1.1.3 netbsd-7-1-RC1:1.1.1.1.6.1 pgoyette-localcount-20161104:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.1.6.1 localcount-20160914:1.1.1.3 netbsd-7-nhusb:1.1.1.1.6.1.0.4 netbsd-7-nhusb-base:1.1.1.1.6.1 clang-280599:1.1.1.3 pgoyette-localcount-20160806:1.1.1.3 pgoyette-localcount-20160726:1.1.1.3 pgoyette-localcount:1.1.1.3.0.2 pgoyette-localcount-base:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.1.6.1 clang-261930:1.1.1.3 netbsd-7-0:1.1.1.1.6.1.0.2 netbsd-7-0-RELEASE:1.1.1.1.6.1 netbsd-7-0-RC3:1.1.1.1.6.1 netbsd-7-0-RC2:1.1.1.1.6.1 netbsd-7-0-RC1:1.1.1.1.6.1 clang-237755:1.1.1.2 clang-232565:1.1.1.2 clang-227398:1.1.1.2 tls-maxphys-base:1.1.1.1 tls-maxphys:1.1.1.1.0.8 netbsd-7:1.1.1.1.0.6 netbsd-7-base:1.1.1.1 clang-215315:1.1.1.1 clang-209886:1.1.1.1 yamt-pagecache:1.1.1.1.0.4 yamt-pagecache-base9:1.1.1.1 tls-earlyentropy:1.1.1.1.0.2 tls-earlyentropy-base:1.1.1.1 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.1 riastradh-drm2-base3:1.1.1.1 clang-202566:1.1.1.1 clang-201163:1.1.1.1 clang-199312:1.1.1.1 clang-198450:1.1.1.1 clang-196603:1.1.1.1 LLVM:1.1.1; locks; strict; comment @// @; 1.1 date 2013.12.06.23.16.51; author joerg; state Exp; branches 1.1.1.1; next ; commitid oIJdta8D25nvY7gx; 1.1.1.1 date 2013.12.06.23.16.51; author joerg; state Exp; branches 1.1.1.1.4.1 1.1.1.1.6.1 1.1.1.1.8.1; next 1.1.1.2; commitid oIJdta8D25nvY7gx; 1.1.1.2 date 2015.01.29.19.57.37; author joerg; state Exp; branches; next 1.1.1.3; commitid mlISSizlPKvepX7y; 1.1.1.3 date 2016.02.27.22.10.18; author joerg; state Exp; branches 1.1.1.3.2.1; next 1.1.1.4; commitid tIimz3oDlh1NpBWy; 1.1.1.4 date 2017.01.11.10.39.39; author joerg; state Exp; branches; next 1.1.1.5; commitid CNnUNfII1jgNmxBz; 1.1.1.5 date 2017.08.01.19.34.10; author joerg; state Exp; branches; next 1.1.1.6; commitid pMuDy65V0VicSx1A; 1.1.1.6 date 2017.12.17.20.58.16; author joerg; state Exp; branches 1.1.1.6.2.1 1.1.1.6.4.1; next 1.1.1.7; commitid T7p9sjiUJyY1UhjA; 1.1.1.7 date 2018.07.17.18.31.53; author joerg; state Exp; branches; next 1.1.1.8; commitid wDzL46ALjrCZgwKA; 1.1.1.8 date 2019.11.13.22.21.55; author joerg; state dead; branches; next ; commitid QD8YATxuNG34YJKB; 1.1.1.1.4.1 date 2013.12.06.23.16.51; author yamt; state dead; branches; next 1.1.1.1.4.2; commitid WSrDtL5nYAUyiyBx; 1.1.1.1.4.2 date 2014.05.22.16.19.26; author yamt; state Exp; branches; next ; commitid WSrDtL5nYAUyiyBx; 1.1.1.1.6.1 date 2015.06.04.20.04.40; author snj; state Exp; branches; next ; commitid yRnjq9fueSo6n9oy; 1.1.1.1.8.1 date 2013.12.06.23.16.51; author tls; state dead; branches; next 1.1.1.1.8.2; commitid jTnpym9Qu0o4R1Nx; 1.1.1.1.8.2 date 2014.08.19.23.48.29; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.1.1.3.2.1 date 2017.03.20.06.53.20; author pgoyette; state Exp; branches; next ; commitid jjw7cAwgyKq7RfKz; 1.1.1.6.2.1 date 2018.07.28.04.33.58; author pgoyette; state Exp; branches; next ; commitid 1UP1xAIUxv1ZgRLA; 1.1.1.6.4.1 date 2019.06.10.21.46.15; author christos; state Exp; branches; next 1.1.1.6.4.2; commitid jtc8rnCzWiEEHGqB; 1.1.1.6.4.2 date 2020.04.13.07.49.20; author martin; state dead; branches; next ; commitid X01YhRUPVUDaec4C; desc @@ 1.1 log @Initial revision @ text @// RUN: %clang_cc1 -std=c++98 -verify %s // RUN: %clang_cc1 -std=c++11 -verify %s // RUN: %clang_cc1 -std=c++1y -verify %s // expected-no-diagnostics #if __cplusplus < 201103L #define check(macro, cxx98, cxx11, cxx1y) cxx98 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx98 #elif __cplusplus < 201304L #define check(macro, cxx98, cxx11, cxx1y) cxx11 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx11 #else #define check(macro, cxx98, cxx11, cxx1y) cxx1y == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx1y #endif #if check(binary_literals, 0, 0, 201304) #error "wrong value for __cpp_binary_literals" #endif #if check(init_captures, 0, 0, 201304) #error "wrong value for __cpp_init_captures" #endif #if check(generic_lambdas, 0, 0, 201304) #error "wrong value for __cpp_generic_lambdas" #endif #if check(constexpr, 0, 200704, 201304) #error "wrong value for __cpp_constexpr" #endif #if check(decltype_auto, 0, 0, 201304) #error "wrong value for __cpp_decltype_auto" #endif #if check(return_type_deduction, 0, 0, 201304) #error "wrong value for __cpp_return_type_deduction" #endif #if check(runtime_arrays, 0, 0, 0) #error "wrong value for __cpp_runtime_arrays" #endif #if check(aggregate_nsdmi, 0, 0, 201304) #error "wrong value for __cpp_aggregate_nsdmi" #endif #if check(variable_templates, 0, 0, 201304) #error "wrong value for __cpp_variable_templates" #endif #if check(unicode_characters, 0, 200704, 200704) #error "wrong value for __cpp_unicode_characters" #endif #if check(raw_strings, 0, 200710, 200710) #error "wrong value for __cpp_raw_strings" #endif #if check(unicode_literals, 0, 200710, 200710) #error "wrong value for __cpp_unicode_literals" #endif #if check(user_defined_literals, 0, 200809, 200809) #error "wrong value for __cpp_user_defined_literals" #endif #if check(lambdas, 0, 200907, 200907) #error "wrong value for __cpp_lambdas" #endif #if check(static_assert, 0, 200410, 200410) #error "wrong value for __cpp_static_assert" #endif #if check(decltype, 0, 200707, 200707) #error "wrong value for __cpp_decltype" #endif #if check(attributes, 0, 200809, 200809) #error "wrong value for __cpp_attributes" #endif #if check(rvalue_references, 0, 200610, 200610) #error "wrong value for __cpp_rvalue_references" #endif #if check(variadic_templates, 0, 200704, 200704) #error "wrong value for __cpp_variadic_templates" #endif @ 1.1.1.1 log @Import clang 3.4rc2 r196603. Many bug fixes and improvements for the driver NetBSD/ARM EABI. @ text @@ 1.1.1.1.6.1 log @Update LLVM to 3.6.1, requested by joerg in ticket 824. @ text @a18 4 #if check(digit_separators, 0, 0, 201309) #error "wrong value for __cpp_digit_separators" #endif a26 4 #if check(sized_deallocation, 0, 0, 201309) #error "wrong value for __cpp_sized_deallocation" #endif a70 4 #if check(range_based_for, 0, 200907, 200907) #error "wrong value for __cpp_range_based_for" #endif a89 24 #if check(initializer_lists, 0, 200806, 200806) #error "wrong value for __cpp_initializer_lists" #endif #if check(delegating_constructors, 0, 200604, 200604) #error "wrong value for __cpp_delegating_constructors" #endif #if check(nsdmi, 0, 200809, 200809) #error "wrong value for __cpp_nsdmi" #endif #if check(inheriting_constructors, 0, 200802, 200802) #error "wrong value for __cpp_inheriting_constructors" #endif #if check(ref_qualifiers, 0, 200710, 200710) #error "wrong value for __cpp_ref_qualifiers" #endif #if check(alias_templates, 0, 200704, 200704) #error "wrong value for __cpp_alias_templates" #endif @ 1.1.1.2 log @Import Clang 3.6RC1 r227398. @ text @a18 4 #if check(digit_separators, 0, 0, 201309) #error "wrong value for __cpp_digit_separators" #endif a26 4 #if check(sized_deallocation, 0, 0, 201309) #error "wrong value for __cpp_sized_deallocation" #endif a70 4 #if check(range_based_for, 0, 200907, 200907) #error "wrong value for __cpp_range_based_for" #endif a89 24 #if check(initializer_lists, 0, 200806, 200806) #error "wrong value for __cpp_initializer_lists" #endif #if check(delegating_constructors, 0, 200604, 200604) #error "wrong value for __cpp_delegating_constructors" #endif #if check(nsdmi, 0, 200809, 200809) #error "wrong value for __cpp_nsdmi" #endif #if check(inheriting_constructors, 0, 200802, 200802) #error "wrong value for __cpp_inheriting_constructors" #endif #if check(ref_qualifiers, 0, 200710, 200710) #error "wrong value for __cpp_ref_qualifiers" #endif #if check(alias_templates, 0, 200704, 200704) #error "wrong value for __cpp_alias_templates" #endif @ 1.1.1.3 log @Import Clang 3.8.0rc3 r261930. @ text @d3 1 a3 3 // RUN: %clang_cc1 -std=c++1y -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++1y -fsized-deallocation -fconcepts-ts -DCONCEPTS_TS=1 -verify %s // RUN: %clang_cc1 -fcoroutines -DCOROUTINES -verify %s a125 8 #if check(experimental_concepts, 0, 0, CONCEPTS_TS) #error "wrong value for __cpp_experimental_concepts" #endif #if (COROUTINES && !__cpp_coroutines) || (!COROUTINES && __cpp_coroutines) #error "wrong value for __cpp_coroutines" #endif @ 1.1.1.3.2.1 log @Sync with HEAD @ text @d1 5 a5 8 // RUN: %clang_cc1 -std=c++98 -fcxx-exceptions -verify %s // RUN: %clang_cc1 -std=c++11 -fcxx-exceptions -verify %s // RUN: %clang_cc1 -std=c++1y -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++14 -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++1z -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++1z -fcxx-exceptions -fsized-deallocation -fconcepts-ts -DCONCEPTS_TS=1 -verify %s // RUN: %clang_cc1 -fno-rtti -verify %s -DNO_EXCEPTIONS -DNO_RTTI // RUN: %clang_cc1 -fcoroutines-ts -DNO_EXCEPTIONS -DCOROUTINES -verify %s a8 1 // FIXME using `defined` in a macro has undefined behavior. d10 3 a12 5 #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx98 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx98 #elif __cplusplus < 201402L #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx11 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx11 #elif __cplusplus < 201406L #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx14 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx14 d14 1 a14 1 #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx1z == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx1z d17 1 a17 75 // --- C++17 features --- #if check(variadic_using, 0, 0, 0, 201611) // FIXME: provisional name #error "wrong value for __cpp_variadic_using" #endif #if check(hex_float, 0, 0, 0, 201603) #error "wrong value for __cpp_hex_float" #endif #if check(inline_variables, 0, 0, 0, 201606) // FIXME: provisional name #error "wrong value for __cpp_inline_variables" #endif #if check(aligned_new, 0, 0, 0, 201606) // FIXME: provisional name #error "wrong value for __cpp_aligned_new" #endif #if check(noexcept_function_type, 0, 0, 0, 201510) #error "wrong value for __cpp_noexcept_function_type" #endif #if check(fold_expressions, 0, 0, 0, 201603) #error "wrong value for __cpp_fold_expressions" #endif #if check(capture_star_this, 0, 0, 0, 201603) #error "wrong value for __cpp_capture_star_this" #endif // FIXME: bump __cpp_constexpr to 201603 for constexpr lambda support #if check(if_constexpr, 0, 0, 0, 201606) // FIXME: provisional name #error "wrong value for __cpp_if_constexpr" #endif // range_based_for checked below // static_assert checked below #if check(template_auto, 0, 0, 0, 201606) // FIXME: provisional name #error "wrong value for __cpp_template_auto" #endif #if check(namespace_attributes, 0, 0, 0, 201411) // FIXME: allowed without warning in C++14 and C++11 #error "wrong value for __cpp_namespace_attributes" #endif #if check(enumerator_attributes, 0, 0, 0, 201411) // FIXME: allowed without warning in C++14 and C++11 #error "wrong value for __cpp_enumerator_attributes" #endif #if check(nested_namespace_definitions, 0, 0, 0, 201411) #error "wrong value for __cpp_nested_namespace_definitions" #endif // inheriting_constructors checked below #if check(aggregate_bases, 0, 0, 0, 201603) #error "wrong value for __cpp_aggregate_bases" #endif #if check(structured_bindings, 0, 0, 0, 201606) #error "wrong value for __cpp_structured_bindings" #endif #if check(nontype_template_args, 0, 0, 0, 201411) #error "wrong value for __cpp_nontype_template_args" #endif // --- C++14 features --- #if check(binary_literals, 0, 0, 201304, 201304) d21 1 a21 2 // (Removed from SD-6.) #if check(digit_separators, 0, 0, 201309, 201309) d25 1 a25 1 #if check(init_captures, 0, 0, 201304, 201304) d29 1 a29 1 #if check(generic_lambdas, 0, 0, 201304, 201304) d33 1 a33 1 #if check(sized_deallocation, 0, 0, 201309, 201309) d37 3 a39 1 // constexpr checked below d41 1 a41 1 #if check(decltype_auto, 0, 0, 201304, 201304) d45 1 a45 1 #if check(return_type_deduction, 0, 0, 201304, 201304) d49 1 a49 1 #if check(runtime_arrays, 0, 0, 0, 0) d53 1 a53 1 #if check(aggregate_nsdmi, 0, 0, 201304, 201304) d57 1 a57 1 #if check(variable_templates, 0, 0, 201304, 201304) d61 1 a61 3 // --- C++11 features --- #if check(unicode_characters, 0, 200704, 200704, 200704) d65 1 a65 1 #if check(raw_strings, 0, 200710, 200710, 200710) d69 1 a69 1 #if check(unicode_literals, 0, 200710, 200710, 200710) d73 1 a73 1 #if check(user_defined_literals, 0, 200809, 200809, 200809) d77 1 a77 1 #if check(lambdas, 0, 200907, 200907, 200907) d81 1 a81 5 #if check(constexpr, 0, 200704, 201304, 201304) #error "wrong value for __cpp_constexpr" #endif #if check(range_based_for, 0, 200907, 200907, 201603) d85 1 a85 1 #if check(static_assert, 0, 200410, 200410, 201411) d89 1 a89 1 #if check(decltype, 0, 200707, 200707, 200707) d93 1 a93 1 #if check(attributes, 0, 200809, 200809, 200809) d97 1 a97 1 #if check(rvalue_references, 0, 200610, 200610, 200610) d101 1 a101 1 #if check(variadic_templates, 0, 200704, 200704, 200704) d105 1 a105 1 #if check(initializer_lists, 0, 200806, 200806, 200806) d109 1 a109 1 #if check(delegating_constructors, 0, 200604, 200604, 200604) d113 1 a113 1 #if check(nsdmi, 0, 200809, 200809, 200809) d117 1 a117 1 #if check(inheriting_constructors, 0, 201511, 201511, 201511) d121 1 a121 1 #if check(ref_qualifiers, 0, 200710, 200710, 200710) d125 1 a125 1 #if check(alias_templates, 0, 200704, 200704, 200704) d129 1 a129 13 // --- C++98 features --- #if defined(NO_RTTI) ? check(rtti, 0, 0, 0, 0) : check(rtti, 199711, 199711, 199711, 199711) #error "wrong value for __cpp_rtti" #endif #if defined(NO_EXCEPTIONS) ? check(exceptions, 0, 0, 0, 0) : check(exceptions, 199711, 199711, 199711, 199711) #error "wrong value for __cpp_exceptions" #endif // --- TS features -- #if check(experimental_concepts, 0, 0, CONCEPTS_TS, CONCEPTS_TS) @ 1.1.1.4 log @Import Clang pre-4.0.0 r291444. @ text @d1 5 a5 8 // RUN: %clang_cc1 -std=c++98 -fcxx-exceptions -verify %s // RUN: %clang_cc1 -std=c++11 -fcxx-exceptions -verify %s // RUN: %clang_cc1 -std=c++1y -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++14 -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++1z -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++1z -fcxx-exceptions -fsized-deallocation -fconcepts-ts -DCONCEPTS_TS=1 -verify %s // RUN: %clang_cc1 -fno-rtti -verify %s -DNO_EXCEPTIONS -DNO_RTTI // RUN: %clang_cc1 -fcoroutines-ts -DNO_EXCEPTIONS -DCOROUTINES -verify %s a8 1 // FIXME using `defined` in a macro has undefined behavior. d10 3 a12 5 #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx98 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx98 #elif __cplusplus < 201402L #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx11 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx11 #elif __cplusplus < 201406L #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx14 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx14 d14 1 a14 1 #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx1z == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx1z d17 1 a17 75 // --- C++17 features --- #if check(variadic_using, 0, 0, 0, 201611) // FIXME: provisional name #error "wrong value for __cpp_variadic_using" #endif #if check(hex_float, 0, 0, 0, 201603) #error "wrong value for __cpp_hex_float" #endif #if check(inline_variables, 0, 0, 0, 201606) // FIXME: provisional name #error "wrong value for __cpp_inline_variables" #endif #if check(aligned_new, 0, 0, 0, 201606) // FIXME: provisional name #error "wrong value for __cpp_aligned_new" #endif #if check(noexcept_function_type, 0, 0, 0, 201510) #error "wrong value for __cpp_noexcept_function_type" #endif #if check(fold_expressions, 0, 0, 0, 201603) #error "wrong value for __cpp_fold_expressions" #endif #if check(capture_star_this, 0, 0, 0, 201603) #error "wrong value for __cpp_capture_star_this" #endif // FIXME: bump __cpp_constexpr to 201603 for constexpr lambda support #if check(if_constexpr, 0, 0, 0, 201606) // FIXME: provisional name #error "wrong value for __cpp_if_constexpr" #endif // range_based_for checked below // static_assert checked below #if check(template_auto, 0, 0, 0, 201606) // FIXME: provisional name #error "wrong value for __cpp_template_auto" #endif #if check(namespace_attributes, 0, 0, 0, 201411) // FIXME: allowed without warning in C++14 and C++11 #error "wrong value for __cpp_namespace_attributes" #endif #if check(enumerator_attributes, 0, 0, 0, 201411) // FIXME: allowed without warning in C++14 and C++11 #error "wrong value for __cpp_enumerator_attributes" #endif #if check(nested_namespace_definitions, 0, 0, 0, 201411) #error "wrong value for __cpp_nested_namespace_definitions" #endif // inheriting_constructors checked below #if check(aggregate_bases, 0, 0, 0, 201603) #error "wrong value for __cpp_aggregate_bases" #endif #if check(structured_bindings, 0, 0, 0, 201606) #error "wrong value for __cpp_structured_bindings" #endif #if check(nontype_template_args, 0, 0, 0, 201411) #error "wrong value for __cpp_nontype_template_args" #endif // --- C++14 features --- #if check(binary_literals, 0, 0, 201304, 201304) d21 1 a21 2 // (Removed from SD-6.) #if check(digit_separators, 0, 0, 201309, 201309) d25 1 a25 1 #if check(init_captures, 0, 0, 201304, 201304) d29 1 a29 1 #if check(generic_lambdas, 0, 0, 201304, 201304) d33 1 a33 1 #if check(sized_deallocation, 0, 0, 201309, 201309) d37 3 a39 1 // constexpr checked below d41 1 a41 1 #if check(decltype_auto, 0, 0, 201304, 201304) d45 1 a45 1 #if check(return_type_deduction, 0, 0, 201304, 201304) d49 1 a49 1 #if check(runtime_arrays, 0, 0, 0, 0) d53 1 a53 1 #if check(aggregate_nsdmi, 0, 0, 201304, 201304) d57 1 a57 1 #if check(variable_templates, 0, 0, 201304, 201304) d61 1 a61 3 // --- C++11 features --- #if check(unicode_characters, 0, 200704, 200704, 200704) d65 1 a65 1 #if check(raw_strings, 0, 200710, 200710, 200710) d69 1 a69 1 #if check(unicode_literals, 0, 200710, 200710, 200710) d73 1 a73 1 #if check(user_defined_literals, 0, 200809, 200809, 200809) d77 1 a77 1 #if check(lambdas, 0, 200907, 200907, 200907) d81 1 a81 5 #if check(constexpr, 0, 200704, 201304, 201304) #error "wrong value for __cpp_constexpr" #endif #if check(range_based_for, 0, 200907, 200907, 201603) d85 1 a85 1 #if check(static_assert, 0, 200410, 200410, 201411) d89 1 a89 1 #if check(decltype, 0, 200707, 200707, 200707) d93 1 a93 1 #if check(attributes, 0, 200809, 200809, 200809) d97 1 a97 1 #if check(rvalue_references, 0, 200610, 200610, 200610) d101 1 a101 1 #if check(variadic_templates, 0, 200704, 200704, 200704) d105 1 a105 1 #if check(initializer_lists, 0, 200806, 200806, 200806) d109 1 a109 1 #if check(delegating_constructors, 0, 200604, 200604, 200604) d113 1 a113 1 #if check(nsdmi, 0, 200809, 200809, 200809) d117 1 a117 1 #if check(inheriting_constructors, 0, 201511, 201511, 201511) d121 1 a121 1 #if check(ref_qualifiers, 0, 200710, 200710, 200710) d125 1 a125 1 #if check(alias_templates, 0, 200704, 200704, 200704) d129 1 a129 13 // --- C++98 features --- #if defined(NO_RTTI) ? check(rtti, 0, 0, 0, 0) : check(rtti, 199711, 199711, 199711, 199711) #error "wrong value for __cpp_rtti" #endif #if defined(NO_EXCEPTIONS) ? check(exceptions, 0, 0, 0, 0) : check(exceptions, 199711, 199711, 199711, 199711) #error "wrong value for __cpp_exceptions" #endif // --- TS features -- #if check(experimental_concepts, 0, 0, CONCEPTS_TS, CONCEPTS_TS) @ 1.1.1.5 log @Import clang r309604 from branches/release_50 @ text @d53 1 a53 1 // constexpr checked below a94 8 #if check(template_template_args, 0, 0, 0, 0) // FIXME: should be 201611 when feature is enabled #error "wrong value for __cpp_template_template_args" #endif #if check(deduction_guides, 0, 0, 0, 201611) // FIXME: provisional name #error "wrong value for __cpp_deduction_guides" #endif d162 1 a162 1 #if check(constexpr, 0, 200704, 201304, 201603) d230 1 a230 1 #if defined(COROUTINES) ? check(coroutines, 201703L, 201703L, 201703L, 201703L) : check(coroutines, 0, 0, 0, 0) @ 1.1.1.6 log @Import clang r319952 from branches/release_50 @ text @d7 1 a7 1 // RUN: %clang_cc1 -fno-rtti -fno-threadsafe-statics -verify %s -DNO_EXCEPTIONS -DNO_RTTI -DNO_THREADSAFE_STATICS d25 4 d33 1 a33 1 #if check(inline_variables, 0, 0, 0, 201606) d37 1 a37 1 #if check(aligned_new, 0, 0, 0, 201606) d55 1 a55 1 #if check(if_constexpr, 0, 0, 0, 201606) d63 1 a63 5 #if check(deduction_guides, 0, 0, 0, 201611) #error "wrong value for __cpp_deduction_guides" #endif #if check(template_auto, 0, 0, 0, 201606) a82 4 #if check(variadic_using, 0, 0, 0, 201611) #error "wrong value for __cpp_variadic_using" #endif d99 4 a165 4 #if defined(NO_THREADSAFE_STATICS) ? check(threadsafe_static_init, 0, 0, 0, 0) : check(threadsafe_static_init, 200806, 200806, 200806, 200806) #error "wrong value for __cpp_threadsafe_static_init" #endif @ 1.1.1.6.4.1 log @Sync with HEAD @ text @d3 1 d5 4 a8 8 // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++2a -fcxx-exceptions -fsized-deallocation -verify %s // // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -frelaxed-template-template-args -DRELAXED_TEMPLATE_TEMPLATE_ARGS=1 -verify %s // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -fconcepts-ts -DCONCEPTS_TS=1 -verify %s // RUN: %clang_cc1 -fno-rtti -fno-threadsafe-statics -verify %s -DNO_EXCEPTIONS -DNO_RTTI -DNO_THREADSAFE_STATICS -fsized-deallocation // RUN: %clang_cc1 -fcoroutines-ts -DNO_EXCEPTIONS -DCOROUTINES -verify -fsized-deallocation %s // RUN: %clang_cc1 -fchar8_t -DNO_EXCEPTIONS -DCHAR8_T -verify -fsized-deallocation %s d14 1 a14 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx98 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx98 d16 1 a16 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx11 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx11 d18 1 a18 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx14 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx14 d20 1 a20 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx17 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx17 a36 4 #if check(guaranteed_copy_elision, 0, 0, 0, 201606) #error "wrong value for __cpp_guaranteed_copy_elision" #endif d59 1 a59 1 #if check(deduction_guides, 0, 0, 0, 201703) a62 6 #if check(nontype_template_parameter_auto, 0, 0, 0, 201606) #error "wrong value for __cpp_nontype_template_parameter_auto" #endif // This is the old name (from P0096R4) for // __cpp_nontype_template_parameter_auto a76 1 // This is an old name (from P0096R4), now removed from SD-6. d99 1 a99 3 #if defined(RELAXED_TEMPLATE_TEMPLATE_ARGS) \ ? check(template_template_args, 0, 0, 0, 201611) \ : check(template_template_args, 0, 0, 0, 0) a244 6 // --- not-yet-standard features -- #if defined(CHAR8_T) ? check(char8_t, 201803, 201803, 201803, 201803) : check(char8_t, 0, 0, 0, 0) #error "wrong value for __cpp_char8_t" #endif @ 1.1.1.6.4.2 log @Mostly merge changes from HEAD upto 20200411 @ text @@ 1.1.1.6.2.1 log @Sync with HEAD @ text @d3 1 d5 4 a8 8 // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++2a -fcxx-exceptions -fsized-deallocation -verify %s // // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -frelaxed-template-template-args -DRELAXED_TEMPLATE_TEMPLATE_ARGS=1 -verify %s // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -fconcepts-ts -DCONCEPTS_TS=1 -verify %s // RUN: %clang_cc1 -fno-rtti -fno-threadsafe-statics -verify %s -DNO_EXCEPTIONS -DNO_RTTI -DNO_THREADSAFE_STATICS -fsized-deallocation // RUN: %clang_cc1 -fcoroutines-ts -DNO_EXCEPTIONS -DCOROUTINES -verify -fsized-deallocation %s // RUN: %clang_cc1 -fchar8_t -DNO_EXCEPTIONS -DCHAR8_T -verify -fsized-deallocation %s d14 1 a14 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx98 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx98 d16 1 a16 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx11 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx11 d18 1 a18 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx14 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx14 d20 1 a20 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx17 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx17 a36 4 #if check(guaranteed_copy_elision, 0, 0, 0, 201606) #error "wrong value for __cpp_guaranteed_copy_elision" #endif d59 1 a59 1 #if check(deduction_guides, 0, 0, 0, 201703) a62 6 #if check(nontype_template_parameter_auto, 0, 0, 0, 201606) #error "wrong value for __cpp_nontype_template_parameter_auto" #endif // This is the old name (from P0096R4) for // __cpp_nontype_template_parameter_auto a76 1 // This is an old name (from P0096R4), now removed from SD-6. d99 1 a99 3 #if defined(RELAXED_TEMPLATE_TEMPLATE_ARGS) \ ? check(template_template_args, 0, 0, 0, 201611) \ : check(template_template_args, 0, 0, 0, 0) a244 6 // --- not-yet-standard features -- #if defined(CHAR8_T) ? check(char8_t, 201803, 201803, 201803, 201803) : check(char8_t, 0, 0, 0, 0) #error "wrong value for __cpp_char8_t" #endif @ 1.1.1.7 log @Import clang r337282 from trunk @ text @d3 1 d5 4 a8 8 // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++2a -fcxx-exceptions -fsized-deallocation -verify %s // // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -frelaxed-template-template-args -DRELAXED_TEMPLATE_TEMPLATE_ARGS=1 -verify %s // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -fconcepts-ts -DCONCEPTS_TS=1 -verify %s // RUN: %clang_cc1 -fno-rtti -fno-threadsafe-statics -verify %s -DNO_EXCEPTIONS -DNO_RTTI -DNO_THREADSAFE_STATICS -fsized-deallocation // RUN: %clang_cc1 -fcoroutines-ts -DNO_EXCEPTIONS -DCOROUTINES -verify -fsized-deallocation %s // RUN: %clang_cc1 -fchar8_t -DNO_EXCEPTIONS -DCHAR8_T -verify -fsized-deallocation %s d14 1 a14 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx98 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx98 d16 1 a16 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx11 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx11 d18 1 a18 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx14 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx14 d20 1 a20 1 #define check(macro, cxx98, cxx11, cxx14, cxx17) cxx17 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx17 a36 4 #if check(guaranteed_copy_elision, 0, 0, 0, 201606) #error "wrong value for __cpp_guaranteed_copy_elision" #endif d59 1 a59 1 #if check(deduction_guides, 0, 0, 0, 201703) a62 6 #if check(nontype_template_parameter_auto, 0, 0, 0, 201606) #error "wrong value for __cpp_nontype_template_parameter_auto" #endif // This is the old name (from P0096R4) for // __cpp_nontype_template_parameter_auto a76 1 // This is an old name (from P0096R4), now removed from SD-6. d99 1 a99 3 #if defined(RELAXED_TEMPLATE_TEMPLATE_ARGS) \ ? check(template_template_args, 0, 0, 0, 201611) \ : check(template_template_args, 0, 0, 0, 0) a244 6 // --- not-yet-standard features -- #if defined(CHAR8_T) ? check(char8_t, 201803, 201803, 201803, 201803) : check(char8_t, 0, 0, 0, 0) #error "wrong value for __cpp_char8_t" #endif @ 1.1.1.8 log @Mark old LLVM instance as dead. @ text @@ 1.1.1.1.8.1 log @file cxx-features.cpp was added on branch tls-maxphys on 2014-08-19 23:48:29 +0000 @ text @d1 89 @ 1.1.1.1.8.2 log @Rebase to HEAD as of a few days ago. @ text @a0 89 // RUN: %clang_cc1 -std=c++98 -verify %s // RUN: %clang_cc1 -std=c++11 -verify %s // RUN: %clang_cc1 -std=c++1y -verify %s // expected-no-diagnostics #if __cplusplus < 201103L #define check(macro, cxx98, cxx11, cxx1y) cxx98 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx98 #elif __cplusplus < 201304L #define check(macro, cxx98, cxx11, cxx1y) cxx11 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx11 #else #define check(macro, cxx98, cxx11, cxx1y) cxx1y == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx1y #endif #if check(binary_literals, 0, 0, 201304) #error "wrong value for __cpp_binary_literals" #endif #if check(init_captures, 0, 0, 201304) #error "wrong value for __cpp_init_captures" #endif #if check(generic_lambdas, 0, 0, 201304) #error "wrong value for __cpp_generic_lambdas" #endif #if check(constexpr, 0, 200704, 201304) #error "wrong value for __cpp_constexpr" #endif #if check(decltype_auto, 0, 0, 201304) #error "wrong value for __cpp_decltype_auto" #endif #if check(return_type_deduction, 0, 0, 201304) #error "wrong value for __cpp_return_type_deduction" #endif #if check(runtime_arrays, 0, 0, 0) #error "wrong value for __cpp_runtime_arrays" #endif #if check(aggregate_nsdmi, 0, 0, 201304) #error "wrong value for __cpp_aggregate_nsdmi" #endif #if check(variable_templates, 0, 0, 201304) #error "wrong value for __cpp_variable_templates" #endif #if check(unicode_characters, 0, 200704, 200704) #error "wrong value for __cpp_unicode_characters" #endif #if check(raw_strings, 0, 200710, 200710) #error "wrong value for __cpp_raw_strings" #endif #if check(unicode_literals, 0, 200710, 200710) #error "wrong value for __cpp_unicode_literals" #endif #if check(user_defined_literals, 0, 200809, 200809) #error "wrong value for __cpp_user_defined_literals" #endif #if check(lambdas, 0, 200907, 200907) #error "wrong value for __cpp_lambdas" #endif #if check(static_assert, 0, 200410, 200410) #error "wrong value for __cpp_static_assert" #endif #if check(decltype, 0, 200707, 200707) #error "wrong value for __cpp_decltype" #endif #if check(attributes, 0, 200809, 200809) #error "wrong value for __cpp_attributes" #endif #if check(rvalue_references, 0, 200610, 200610) #error "wrong value for __cpp_rvalue_references" #endif #if check(variadic_templates, 0, 200704, 200704) #error "wrong value for __cpp_variadic_templates" #endif @ 1.1.1.1.4.1 log @file cxx-features.cpp was added on branch yamt-pagecache on 2014-05-22 16:19:26 +0000 @ text @d1 89 @ 1.1.1.1.4.2 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @a0 89 // RUN: %clang_cc1 -std=c++98 -verify %s // RUN: %clang_cc1 -std=c++11 -verify %s // RUN: %clang_cc1 -std=c++1y -verify %s // expected-no-diagnostics #if __cplusplus < 201103L #define check(macro, cxx98, cxx11, cxx1y) cxx98 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx98 #elif __cplusplus < 201304L #define check(macro, cxx98, cxx11, cxx1y) cxx11 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx11 #else #define check(macro, cxx98, cxx11, cxx1y) cxx1y == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx1y #endif #if check(binary_literals, 0, 0, 201304) #error "wrong value for __cpp_binary_literals" #endif #if check(init_captures, 0, 0, 201304) #error "wrong value for __cpp_init_captures" #endif #if check(generic_lambdas, 0, 0, 201304) #error "wrong value for __cpp_generic_lambdas" #endif #if check(constexpr, 0, 200704, 201304) #error "wrong value for __cpp_constexpr" #endif #if check(decltype_auto, 0, 0, 201304) #error "wrong value for __cpp_decltype_auto" #endif #if check(return_type_deduction, 0, 0, 201304) #error "wrong value for __cpp_return_type_deduction" #endif #if check(runtime_arrays, 0, 0, 0) #error "wrong value for __cpp_runtime_arrays" #endif #if check(aggregate_nsdmi, 0, 0, 201304) #error "wrong value for __cpp_aggregate_nsdmi" #endif #if check(variable_templates, 0, 0, 201304) #error "wrong value for __cpp_variable_templates" #endif #if check(unicode_characters, 0, 200704, 200704) #error "wrong value for __cpp_unicode_characters" #endif #if check(raw_strings, 0, 200710, 200710) #error "wrong value for __cpp_raw_strings" #endif #if check(unicode_literals, 0, 200710, 200710) #error "wrong value for __cpp_unicode_literals" #endif #if check(user_defined_literals, 0, 200809, 200809) #error "wrong value for __cpp_user_defined_literals" #endif #if check(lambdas, 0, 200907, 200907) #error "wrong value for __cpp_lambdas" #endif #if check(static_assert, 0, 200410, 200410) #error "wrong value for __cpp_static_assert" #endif #if check(decltype, 0, 200707, 200707) #error "wrong value for __cpp_decltype" #endif #if check(attributes, 0, 200809, 200809) #error "wrong value for __cpp_attributes" #endif #if check(rvalue_references, 0, 200610, 200610) #error "wrong value for __cpp_rvalue_references" #endif #if check(variadic_templates, 0, 200704, 200704) #error "wrong value for __cpp_variadic_templates" #endif @