[clang] [clang] Add support for MSVC force inline attrs (PR #185282)
Trung Nguyen via cfe-commits
cfe-commits at lists.llvm.org
Fri May 22 10:24:50 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 &&
----------------
trungnt2910 wrote:
The restriction was not my idea: https://github.com/llvm/llvm-project/pull/185282#discussion_r3010879738
https://github.com/llvm/llvm-project/pull/185282
More information about the cfe-commits
mailing list