Qt-QtMacros¶
Qt macros should not be misused
Required inputs: IR
- Checks of any macro beginning with
Q_OS_*beforeqglobal.his included. - Uses of
Q_OS_WINDOWSinstead ofQ_OS_WIN.
This rule is based on clazy rule qt-macros
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
check_before_include |
{} should not be checked before qglobal.h is included |
None |
False |
nonexistent_macro |
Q_OS_WINDOWS does not exists, use Q_OS_WIN instead |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
check_for_q_os_windows¶
check_for_q_os_windows : bool = False
level¶
level : int = 0