Files
codeql/change-notes/1.19/analysis-cpp.md
Geoffrey White 998b28b359 CPP: Change note.
2018-10-05 16:52:06 +01:00

1.5 KiB

Improvements to C/C++ analysis

General improvements

New queries

Query Tags Purpose
@name of query (Query ID) Tags Aim of the new query and whether it is enabled by default or not

Changes to existing queries

Query Expected impact Change
Resource not released in destructor Fewer false positive results Placement new is now excluded from the query.
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.
Wrong type of arguments to formatting function 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.

Changes to QL libraries

  • Added a hash consing library for structural comparison of expressions.