Clang Flag: -Wc++20-extensions / -Wno-c++20-extensions
Jump to navigation
Jump to search
Supergroups
- -Wc++2a-extensions (23 elements)
Subroups
- -Wc++20-designator (1 element)
- -Wc++20-attribute-extensions (1 element)
Warnings/Remarks
Default Active (Deactivate with -Wno-c++20-extensions)
ext_adl_only_template_id | warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension | ||||||
ext_bitfield_member_init | warning: default member initializer for bit-field is a C++20 extension | ||||||
ext_capture_binding | warning: captured structured bindings are a C++20 extension | ||||||
ext_constexpr_body_invalid_stmt_cxx20 |
| ||||||
ext_constexpr_ctor_missing_init | warning: constexpr constructor that does not initialize all members is a C++20 extension | ||||||
ext_constexpr_function_try_block_cxx20 |
| ||||||
ext_constexpr_local_var_no_init |
| ||||||
ext_constexpr_union_ctor_no_init | warning: constexpr union constructor that does not initialize any member is a C++20 extension | ||||||
ext_decomp_decl_spec |
| ||||||
ext_defaulted_comparison | warning: defaulted comparison operators are a C++20 extension | ||||||
ext_equals_this_lambda_capture_cxx20 | warning: explicit capture of 'this' with a capture default of '=' is a C++20 extension | ||||||
ext_explicit_bool | warning: explicit(bool) is a C++20 extension | ||||||
ext_for_range_init_stmt | warning: range-based for loop initialization statements are a C++20 extension | ||||||
ext_implicit_typename | warning: missing 'typename' prior to dependent type name AB; implicit 'typename' is a C++20 extension | ||||||
ext_init_capture_pack | warning: initialized lambda pack captures are a C++20 extension | ||||||
ext_inline_nested_namespace_definition | warning: inline nested namespace definition is a C++20 extension | ||||||
ext_lambda_template_parameter_list | warning: explicit template parameter list for lambdas is a C++20 extension | ||||||
ext_using_decl_scoped_enumerator | warning: using declaration naming a scoped enumerator is a C++20 extension | ||||||
ext_using_enum_declaration | warning: using enum declaration is a C++20 extension |
Default Inactive (Activate with -Wc++20-extensions)
ext_pointer_to_const_ref_member_on_rvalue | warning: invoking a pointer to a 'const &' member function on an rvalue is a C++20 extension |
warn_cxx17_compat_aggregate_init_paren_list | warning: aggregate initialization of type A from a parenthesized list of values is a C++20 extension |
ext_cxx_designated_init | warning: designated initializers are a C++20 extension |
ext_cxx20_attr | warning: use of the A attribute is a C++20 extension |