[clang] [clang] Add support for MSVC force inline attrs (PR #185282)
Trung Nguyen via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 31 06:37:14 PDT 2026
================
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -verify -fsyntax-only -std=c++23 %s
----------------
trungnt2910 wrote:
It seems like the check for attribute arguments is done before the check for Microsoft extensions.
I'm modifying the tests to expect errors when doing things like `[[msvc::forceinline_calls("foo")]]` on a non-Microsoft compilation.
I am not sure if there is any random code targeting UNIX that relies on such a thing as `[[msvc::forceinline_calls("foo")]]` to be valid.
https://github.com/llvm/llvm-project/pull/185282
More information about the cfe-commits
mailing list