Clazy-Level-1¶
Clazy checks from level 1
Nested Rules
Finds places where QStringBuilder is deduced instead of QString, which introduces crashes |
|
Finds places within child events where qobject_cast can fail |
|
Warns when using the 3-arg QObject::connect that takes a lambda |
|
Warns when a signal or non-void slot is const |
|
Calling non-const member functions on temporaries should be avoided |
|
The emit (or Q_EMIT) macro shall be used iff emitting a signal |
|
Warns on potential misuse of QObject::installEventFilter() |
|
Global statics shall be trivially default constructible and trivially destructible |
|
Overriding a signal might have unintended effects |
|
Finds places where an event is not correctly passed to QCoreApplication::postEvent() |
|
Finds places where you’re using QLatin1String with a non-ascii literal |
|
The enclosing namespace of an overload of qHash shall match its argument’s namespace |
|
Do not use range-based for loops with non-const range-expression on Qt containers |
|
Finds places where you’re using C++11 range-loops with non-trivial types by value |
|
Referencing data from a temporary QByteArray leads to use-after-free |
|
A trivial copy constructor or copy assignment operator is called despite non-trivial counter parts |
|
Avoid calling methods from indirect base classes that are redefined in a direct one |
|
Signals should not be virtual |
Options
Setting an option for this rule means setting the default for all nested rules.
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
This rule has no individual options.