Comparison result is always the same (cpp/constant-comparison) |
Fewer false positive results |
Comparisons in template instantiations are now excluded from results. |
Empty branch of conditional (cpp/empty-block) |
Fewer false positive results |
Now recognizes commented blocks more reliably. |
Expression has no effect (cpp/useless-expression) |
Fewer false positive results |
Expressions in template instantiations are now excluded from results. |
Missing return statement (cpp/missing-return) |
Fewer false positive results, visible by default |
Improved results when a function returns a template-dependent type, or makes a non-returning call to another function. Precision increased from 'medium' to 'high' so that alerts are shown by default in LGTM. |
Multiplication result converted to larger type (cpp/integer-multiplication-cast-to-long) |
Fewer false positive results |
Char-typed numbers are no longer considered to be potentially large. |
No virtual destructor (cpp/jsf/av-rule-78) |
No results in LGTM |
This query is part of the Joint Strike Fighter suite which defines strict coding rules for air vehicles. Its query identifier has been revised to reflect this. On LGTM this query has been replaced by the similar query "Non-virtual destructor in base class", see New queries above. The new query highlights only code that is likely to be a problem in the majority of projects. |
Overloaded assignment does not return 'this' (cpp/assignment-does-not-return-this) |
Fewer false positive results |
Any return statements that are unreachable are now ignored. |
Resource not released in destructor (cpp/resource-not-released-in-destructor) |
Fewer false positive results |
No longer highlights uses of C++ placement new and results are no longer reported for resources where the destructor body is not in the snapshot database. |
Self comparison (cpp/comparison-of-identical-expressions) |
Fewer false positive results |
Code inside macro invocations is now excluded from the query. |
Static array access may cause overflow (cpp/static-buffer-overflow) |
More correct results |
Data flow to the size argument of a buffer operation is now checked in this query. |
Suspicious add with sizeof (cpp/suspicious-add-sizeof) |
Fewer false positive results |
Arithmetic with void pointers (where allowed) is now excluded from results. |
Unsigned comparison to zero (cpp/unsigned-comparison-zero) |
Fewer false positive results |
Comparisons in template instantiations are now excluded from results. |
Wrong type of arguments to formatting function (cpp/wrong-type-format-argument) |
Fewer false positive results |
False positive results involving typedefs have been removed. Expected argument types are determined more accurately, especially for wide string and pointer types. Custom (non-standard) formatting functions are also identified more accurately. |