Qt-QhashNamespace¶
The enclosing namespace of an overload of qHash shall match its argument’s namespace
Required inputs: IR
qHash() needs to be inside the namespace for
argument-dependent lookup (ADL) to happen.
This rule is based on clazy rule qhash-namespace
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
qhash_move_into_namespace |
Move qHash({}) into {} namespace for ADL. |
None |
False |
qhash_move_outof_namespace |
Move qHash({}) out of {} namespace. |
None |
False |
qhash_outside_qt_namespace |
qHash() must be declared between QT_BEGIN_NAMESPACE and QT_END_NAMESPACE. |
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
level¶
level : int = 1