[clang] [clang][clang-cl] Add -fms-preprocessor-compat and support /Zc:preprocessor (PR #167200)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 4 01:29:23 PST 2026


================
@@ -307,12 +306,17 @@ Non-comprehensive list of changes in this release
 
 - Clang now rejects the invalid use of ``constexpr`` with ``auto`` and an explicit type in C. (#GH163090)
 
+- ``_MSVC_TRADITIONAL`` is now defined to ``0`` when using ``-fms-extensions``. The charize operator and ``/##/`` paste trick remain as supported extensions, which is a divergence from MSVC.
+
----------------
zmodem wrote:

+1 I don't think we should diverge unless there's a good reason.

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


More information about the cfe-commits mailing list