Skip to content

clang-cl: ignore /Zc:preprocessor #47564

@llvmbot

Description

@llvmbot
Bugzilla Link 48220
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @P-p-H-d,@zygoloid

Extended Description

Visual C++ 2019 has new compiler option /Zc:preprocessor for ISO C++ conformance. As clang should be conforming by default, it should ignore them instead of issuing a warning "argument unused during compilation".
https://devblogs.microsoft.com/cppblog/announcing-full-support-for-a-c-c-conformant-preprocessor-in-msvc/
https://docs.microsoft.com/en-us/cpp/build/reference/zc-conformance?view=msvc-160

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang-cl`clang-cl` driver. Don't use for other compiler parts

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions