Skip to content

Clang c++20compat warnings trigger on assembly-with-cpp files. #142775

Open
@tru

Description

@tru
> cat foo.S
# requires
> clang++ foo.S -Wc++20-compat -std=c++17 -c
foo.S:1:3: warning: 'requires' is a keyword in C++20 [-Wc++20-compat]
    1 | # requires
      |   ^
1 warning generated.

This seems like it shouldn't trigger for this file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions