Qt-GenericΒΆ
Selection of generic rules for Qt
Nested Rules
Different include files should not use the same include guard |
|
Validates the use of format specifiers |
|
A constructor must initialize all data members of the class |
|
Do call the base class copy constructor or assignment operator, if you implement a copy constructor or assignment operator in a derived class |
|
Include files need an include guard |
|
Use QObject::tr() in QWidget constructors |
|
Do not use absolute path names in #include |
|
Do not define (non-inline) functions in header files |
|
Avoid #includes which cannot be syntactically integrated |
|
Consistently use either the keyword class or struct per composite type, do not mix them |
|
Do not overload certain operators |
|
Do not return a reference or pointer to a local variable |
|
Check QNetworkReply::deleteLater |
|
Throw exceptions by value and catch them by reference |
|
Do not redefine a typedef |
|
Includes should use same casing as target file name |
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.