Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ecangi opened this issue Jun 19, 2023 · 0 comments

Comments

@ecangi
Copy link

ecangi commented Jun 19, 2023

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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant