Skip to content

Commit 9daefa3

Browse files
committed
C++: Complete change notes for my own PRs
1 parent 453529e commit 9daefa3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

change-notes/1.19/analysis-cpp.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323
| Expression has no effect | Fewer false positive results | Expressions in template instantiations are now excluded from this query. |
2424
| Global could be static | Fewer false positive results | Variables with declarations in header files are now excluded from this query. |
2525
| Resource not released in destructor | Fewer false positive results | Placement new is now excluded from the query. Also fixed an issue where false positives could occur if the destructor body was not in the snapshot. |
26+
| Memory is never freed | Fewer false positive results | This query now accounts for C++ _placement new_, which returns a pointer that does not need to be freed. |
2627
| Missing return statement (`cpp/missing-return`) | Visible by default | The precision of this query has been increased from 'medium' to 'high', which makes it visible by default in LGTM. It was 'medium' in release 1.17 and 1.18 because it had false positives due to an extractor bug that was fixed in 1.18. |
2728
| Missing return statement | Fewer false positive results | The query is now produces correct results when a function returns a template-dependent type, or makes a non-returning call to another function. |
29+
| Multiplication result converted to larger type (`cpp/integer-multiplication-cast-to-long`) | Fewer false positive results | Char-typed numbers are no longer considered to potentially large. |
30+
| Overloaded assignment does not return 'this' (`cpp/assignment-does-not-return-this`) | Fewer false positive results | This query now ignores any return statements that are unreachable. |
2831
| Static array access may cause overflow | More correct results | Data flow to the size argument of a buffer operation is now checked in this query. |
2932
| Call to memory access function may overflow buffer | More correct results | Array indexing with a negative index is now detected by this query. |
3033
| Self comparison | Fewer false positive results | Code inside macro invocations is now excluded from the query. |

0 commit comments

Comments
 (0)