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<
|
||||
"redundant %0 availability change; only the last specified change will " "be used">;
|
||||
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
|
||||
// - Generic warnings
|
||||
|
|
|
@ -1667,11 +1667,11 @@ def warn_attribute_not_on_decl : Error<
|
|||
|
||||
// Availability attribute
|
||||
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<
|
||||
"feature cannot be %select{introduced|deprecated|obsoleted}0 in %1 version "
|
||||
"%2 before it was %select{introduced|deprecated|obsoleted}3 in version %4; "
|
||||
"attribute ignored">;
|
||||
"attribute ignored">, InGroup<Availability>;
|
||||
|
||||
// Thread Safety Attributes
|
||||
def warn_thread_attribute_ignored : Warning<
|
||||
|
|
|
@ -17,7 +17,7 @@ This test serves two purposes:
|
|||
|
||||
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_binary_literal
|
||||
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_local
|
||||
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_bitfield_width_exceeds_type_size
|
||||
CHECK-NEXT: warn_bool_switch_condition
|
||||
|
|
Loading…
Reference in New Issue