[clang] [Clang] Accept mixed __declspec and standard attributes (PR #242362)

Daniel Petrovic via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 14 09:23:31 PST 2026


================
@@ -60,3 +61,34 @@ __attribute__((warn_unused_result)) [[maybe_unused]] int f();
 [[maybe_unused]] __attribute__((warn_unused_result)) [[]]
 __attribute__((nothrow)) [[nodiscard]] int h();
 }
+
+// Leading attribute permutations at global and namespace scope.
+[[]] __declspec() int declspecAfterStandard;
----------------
daniel-petrovic wrote:

thank you .. cleaned up some permutations

https://github.com/llvm/llvm-project/pull/242362


More information about the cfe-commits mailing list