Clang Flag: -Wswift-name-attribute / -Wno-swift-name-attribute
Jump to navigation
Jump to search
Supergroups
Subroups
Warnings/Remarks
Default Active (Deactivate with -Wno-swift-name-attribute)
warn_attr_swift_name_decl_kind | warning: A attribute cannot be applied to this declaration | |||||||
warn_attr_swift_name_decl_missing_params |
| |||||||
warn_attr_swift_name_function | warning: A attribute argument must be a string literal specifying a Swift function name | |||||||
warn_attr_swift_name_getter_parameters | warning: A attribute for getter must not have any parameters besides 'self:' | |||||||
warn_attr_swift_name_invalid_identifier |
| |||||||
warn_attr_swift_name_missing_parameters | warning: A attribute is missing parameter label clause | |||||||
warn_attr_swift_name_multiple_selfs | warning: A attribute cannot specify more than one 'self:' parameter | |||||||
warn_attr_swift_name_num_params |
| |||||||
warn_attr_swift_name_setter_parameters | warning: A attribute for setter must have one parameter for new value | |||||||
warn_attr_swift_name_subscript_getter_newValue | warning: A attribute for 'subscript' getter cannot have a 'newValue:' parameter | |||||||
warn_attr_swift_name_subscript_invalid_parameter |
| |||||||
warn_attr_swift_name_subscript_setter_multiple_newValues | warning: A attribute for 'subscript' setter cannot have multiple 'newValue:' parameters | |||||||
warn_attr_swift_name_subscript_setter_no_newValue | warning: A attribute for 'subscript' setter must have a 'newValue:' parameter |
Default Inactive (Activate with -Wswift-name-attribute)
None