Home | History | Annotate | Download | only in Inputs
      1 #define SUPPRESS_NULLABILITY_WARNING(Type)                              \
      2   _Pragma("clang diagnostic push")                                      \
      3   _Pragma("clang diagnostic ignored \"-Wnullability-completeness\"")    \
      4   Type                                                                  \
      5   _Pragma("clang diagnostic pop")
      6 
      7 void suppress1(SUPPRESS_NULLABILITY_WARNING(int *) ptr); // no warning
      8 
      9 void shouldwarn5(int *ptr); //expected-warning{{missing a nullability type specifier}}
     10 
     11 void trigger5(int * _Nonnull);
     12 
     13 void suppress2(SUPPRESS_NULLABILITY_WARNING(int *) ptr); // no warning
     14 
     15