Skip to content

False warning in C++ .hpp file #3137

@teodor256

Description

@teodor256

Description of the problem or steps to reproduce

After adding "#pragma once" in empty .hpp file Micro throws warning "#pragma once in main file".
It occurs even if "int main()" is not declared, which is misleading.

Specifications

Commit hash: Version: 2.0.11
OS: Debian GNU/Linux 12 (Bookworm)
Terminal: Alacritty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions