Clang Flag: -Wdangling / -Wno-dangling
Jump to navigation
Jump to search
Supergroups
Subroups
- -Wdangling-field (4 elements)
- -Wdangling-initializer-list (1 element)
- -Wdangling-gsl (2 elements)
- -Wreturn-stack-address (3 elements)
Warnings/Remarks
Default Active (Deactivate with -Wno-dangling)
warn_dangling_variable |
| |||||||||||||||||||||||||||||||||
warn_unsupported_lifetime_extension |
| |||||||||||||||||||||||||||||||||
warn_bind_ref_member_to_parameter |
| |||||||||||||||||||||||||||||||||
warn_dangling_member |
| |||||||||||||||||||||||||||||||||
warn_init_ptr_member_to_parameter_addr |
| |||||||||||||||||||||||||||||||||
warn_new_dangling_reference | warning: temporary bound to reference member of allocated object will be destroyed at the end of the full-expression | |||||||||||||||||||||||||||||||||
warn_new_dangling_initializer_list |
| |||||||||||||||||||||||||||||||||
warn_dangling_lifetime_pointer | warning: object backing the pointer will be destroyed at the end of the full-expression | |||||||||||||||||||||||||||||||||
warn_dangling_lifetime_pointer_member | warning: initializing pointer member A to point to a temporary object whose lifetime is shorter than the lifetime of the constructed object | |||||||||||||||||||||||||||||||||
warn_ret_addr_label | warning: returning address of label, which is local | |||||||||||||||||||||||||||||||||
warn_ret_local_temp_addr_ref |
| |||||||||||||||||||||||||||||||||
warn_ret_stack_addr_ref |
|
Default Inactive (Activate with -Wdangling)
None