Skip to content

[C++][Module] Improve diagnostic 'export declaration can only be used within a module purview' #149008

@yronglin

Description

@yronglin
module M; // #M

export int b2; // expected-error {{export declaration can only be used within a module purview}}

As Michael's suggestion in #148861 (comment), This should say "within the purview of a module interface" for this case, or just "within a module interface" to be less pedantic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++20clang:modulesC++20 modules and Clang Header Modulesgood first issuehttps://github.com/llvm/llvm-project/contribute

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions