Is there an issue with clazy and clion with the Q_OS_ inspection?
I'm having issues with CLion and my Qt-based open-source project (https://github.com/nedrysoft/pingnoo) and I'm currently having an issue with CLion with the Q_OS_ macros. I'm getting warnings in every file that uses such a macro definition that <qglobal.h> should be included before using the Q_OS macros, but adding it doesn't solve it.
As an example, I'm looking at the file src/libs/SettingsDialog/src/SettingsDialog.cpp and adding the suggested <qglobal.h> include at the top of the file (or any file which is flagging it) doesn't solve the warning, it just keeps showing the following warning, in my case 7 times in this file.
Clazy: Include qglobal.h before testing Q_OS_ macros
This is generating a lot of noise in the CLion environment making it hard to visually see an overview of how the code looks.
Any ideas? My application runs on macOS, WIndows and Linux so I make use of these macros a lot where operating system dependant code exists.
请先登录再写评论。
Hello!
It seems to be https://youtrack.jetbrains.com/issue/CPP-23954. Feel free to comment or upvote the issue. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Sorry for the inconvenience.