[all-commits] [llvm/llvm-project] 670fa2: Fix spurious non-strict availability warning (#94377)
Gábor Horváth via All-commits
all-commits at lists.llvm.org
Thu Jun 6 22:48:18 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 670fa2bd7a4d50c33bc24d4e3e1fa4079592b730
https://github.com/llvm/llvm-project/commit/670fa2bd7a4d50c33bc24d4e3e1fa4079592b730
Author: Gábor Horváth <xazax.hun at gmail.com>
Date: 2024-06-07 (Fri, 07 Jun 2024)
Changed paths:
M clang/include/clang/Sema/Initialization.h
M clang/lib/Sema/SemaAvailability.cpp
A clang/test/Sema/attr-availability-macosx.cpp
Log Message:
-----------
Fix spurious non-strict availability warning (#94377)
The availability attributes are stored on the function declarations. The
code was looking for them in the function template declarations. This
resulted in spuriously diagnosing (non-strict) availablity issues in
contexts that are not available.
Co-authored-by: Gabor Horvath <gaborh at apple.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list