[clang] [clang][Modules] Complete the implementation of P2615: Meaningful exports (PR #194201)

Yihan Wang via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 28 01:48:49 PDT 2026


================
@@ -3,9 +3,135 @@
 
 
 // RUN: %clang_cc1 -std=c++20 -verify -fsyntax-only %t/A.cpp
+// RUN: %clang_cc1 -std=c++20 -verify -fsyntax-only %t/B.cpp
+// RUN: not %clang_cc1 -std=c++20 -fsyntax-only -fdiagnostics-parseable-fixits %t/B.cpp 2>&1 | FileCheck %t/B.cpp
+// RUN: %clang_cc1 -std=c++20 -verify -fsyntax-only %t/msvc-stl-exception-1.cpp
----------------
yronglin wrote:

AFAIK, microsoft/STL uses many extensions specific to MSVC, such as __declspec, dllimport/dllexport, novtable (e.g., <future>, <functional>, <memory>, <system_error>), empty_bases (<generator>), appdomain (yvals.h), and intrinsics like _BitScan* and _Interlocked*. Therefore, users must enable the -fms-compatibility and -fms-extension options to compile Microsoft/STL.

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


More information about the cfe-commits mailing list