forked from OSchip/llvm-project
Put the availability warnings in a group.
llvm-svn: 156261
This commit is contained in:
parent
854f366a1f
commit
d8b1b908b5
|
@ -652,7 +652,8 @@ def err_availability_unknown_change : Error<
|
||||||
def err_availability_redundant : Error<
|
def err_availability_redundant : Error<
|
||||||
"redundant %0 availability change; only the last specified change will " "be used">;
|
"redundant %0 availability change; only the last specified change will " "be used">;
|
||||||
def warn_availability_and_unavailable : Warning<
|
def warn_availability_and_unavailable : Warning<
|
||||||
"'unavailable' availability overrides all other availability information">;
|
"'unavailable' availability overrides all other availability information">,
|
||||||
|
InGroup<Availability>;
|
||||||
|
|
||||||
// Language specific pragmas
|
// Language specific pragmas
|
||||||
// - Generic warnings
|
// - Generic warnings
|
||||||
|
|
|
@ -1667,12 +1667,12 @@ def warn_attribute_not_on_decl : Error<
|
||||||
|
|
||||||
// Availability attribute
|
// Availability attribute
|
||||||
def warn_availability_unknown_platform : Warning<
|
def warn_availability_unknown_platform : Warning<
|
||||||
"unknown platform %0 in availability macro">;
|
"unknown platform %0 in availability macro">, InGroup<Availability>;
|
||||||
def warn_availability_version_ordering : Warning<
|
def warn_availability_version_ordering : Warning<
|
||||||
"feature cannot be %select{introduced|deprecated|obsoleted}0 in %1 version "
|
"feature cannot be %select{introduced|deprecated|obsoleted}0 in %1 version "
|
||||||
"%2 before it was %select{introduced|deprecated|obsoleted}3 in version %4; "
|
"%2 before it was %select{introduced|deprecated|obsoleted}3 in version %4; "
|
||||||
"attribute ignored">;
|
"attribute ignored">, InGroup<Availability>;
|
||||||
|
|
||||||
// Thread Safety Attributes
|
// Thread Safety Attributes
|
||||||
def warn_thread_attribute_ignored : Warning<
|
def warn_thread_attribute_ignored : Warning<
|
||||||
"ignoring %0 attribute because its argument is invalid">,
|
"ignoring %0 attribute because its argument is invalid">,
|
||||||
|
|
|
@ -17,7 +17,7 @@ This test serves two purposes:
|
||||||
|
|
||||||
The list of warnings below should NEVER grow. It should gradually shrink to 0.
|
The list of warnings below should NEVER grow. It should gradually shrink to 0.
|
||||||
|
|
||||||
CHECK: Warnings without flags (248):
|
CHECK: Warnings without flags (245):
|
||||||
CHECK-NEXT: ext_anonymous_struct_union_qualified
|
CHECK-NEXT: ext_anonymous_struct_union_qualified
|
||||||
CHECK-NEXT: ext_binary_literal
|
CHECK-NEXT: ext_binary_literal
|
||||||
CHECK-NEXT: ext_cast_fn_obj
|
CHECK-NEXT: ext_cast_fn_obj
|
||||||
|
@ -112,9 +112,6 @@ CHECK-NEXT: warn_attribute_weak_import_invalid_on_definition
|
||||||
CHECK-NEXT: warn_attribute_weak_on_field
|
CHECK-NEXT: warn_attribute_weak_on_field
|
||||||
CHECK-NEXT: warn_attribute_weak_on_local
|
CHECK-NEXT: warn_attribute_weak_on_local
|
||||||
CHECK-NEXT: warn_attribute_wrong_decl_type
|
CHECK-NEXT: warn_attribute_wrong_decl_type
|
||||||
CHECK-NEXT: warn_availability_and_unavailable
|
|
||||||
CHECK-NEXT: warn_availability_unknown_platform
|
|
||||||
CHECK-NEXT: warn_availability_version_ordering
|
|
||||||
CHECK-NEXT: warn_bad_receiver_type
|
CHECK-NEXT: warn_bad_receiver_type
|
||||||
CHECK-NEXT: warn_bitfield_width_exceeds_type_size
|
CHECK-NEXT: warn_bitfield_width_exceeds_type_size
|
||||||
CHECK-NEXT: warn_bool_switch_condition
|
CHECK-NEXT: warn_bool_switch_condition
|
||||||
|
|
Loading…
Reference in New Issue