================ @@ -177,16 +177,19 @@ void justAtAvailable(void) { #ifdef OBJCPP -int f(char) AVAILABLE_10_12; +int f(char) AVAILABLE_10_12; // #f_char_def int f(int); template <class T> int use_f() { - // FIXME: We should warn here! - return f(T()); ---------------- epilk wrote:
Could you check that we don't emit a warning if there is an availability attribute on the enclosing function or if the use is guarded by an `if (@available(...))` check? IIRC that that was what I was concerned about when I wrote this. @jansvoboda11 : someone at Apple should probably review this. https://github.com/llvm/llvm-project/pull/91699 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits