[clang] [clang] Add support for MSVC force inline attrs (PR #185282)
Paweł Bylica via cfe-commits
cfe-commits at lists.llvm.org
Fri May 22 11:23:52 PDT 2026
================
@@ -5181,6 +5181,18 @@ OptimizeNoneAttr *Sema::mergeOptimizeNoneAttr(Decl *D,
}
static void handleAlwaysInlineAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
+ AlwaysInlineAttr AIA(S.Context, AL);
+ if (!S.getLangOpts().MicrosoftExt &&
----------------
chfast wrote:
This forces me to disable this warning because of the usage `[[gnu::always_inline, msvc::forceinline]]`.
https://github.com/llvm/llvm-project/pull/185282
More information about the cfe-commits
mailing list