Skip to content

False positive "should not #include C++ source file" for CMake's AUTOMOC files #168

Description

@ecangi

We recently migrated our solution and projects from Qmake to CMake's infamous automoc feature.

Since Qmake is considered deprecated in qt6 and will quite possibly disappear in qt7, the move to CMake is a logical one for many software stacks and companies.

The result is that generated CMake project will carry a .cpp file named moc_compilation_<debug|release|...>.cpp which in turn includes a number of generated .cpp ./FolderABC/moc_XYZ.cpp files. All of these includes are currently flagged as 'should not #include C++ source file'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions