Skip to content

Support for /Zc:preprocessor in clang-cl #147304

Open
@evg656e

Description

@evg656e

There is a new option for MSVC that makes the preprocessor standard-compliant: Microsoft Documentation. As of LLVM 20.1.6, clang-cl ignores this option, which allows the writing of ill-formed macros. It be nice to have this option working in clang-cl.

Other reports can be found here: Stack Overflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-cl`clang-cl` driver. Don't use for other compiler partsclang:frontendLanguage frontend issues, e.g. anything involving "Sema"diverges-from:msvcDoes the clang frontend diverge from msvc on this issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions