mirror of
https://github.com/github/codeql.git
synced 2026-07-23 20:22:02 +02:00
1.1 KiB
1.1 KiB
7.2.0
Deprecated APIs
FuncTypeExpr.getResultDecl()has been deprecated. UseFuncTypeExpr.getResultDecl(int i)instead.
Minor Analysis Improvements
- Added models for the
log/slogpackage (Go 1.21+). Its logging functions and*slog.Loggermethods (Debug/Info/Warn/Error, theirContextvariants, andLog/LogAttrs) are now recognized as logging sinks, so thego/log-injectionandgo/clear-text-loggingqueries cover code that logs throughslog. DataFlow::ResultNodes are no longer created for returned expressions in functions with named result parameters. In this case there are already result nodes corresponding toIR::ReadResultInstructions at the end of the function body.FuncTypeExpr.getNumResult()now gets the number of result parameters. It previously got the number of result declarations, which is different when one result declaration declares more than one variable, as inx, y int. All uses of it expected the number of result parameters. Its QLDoc has been updated.- More logging functions are now recognized as not returning or panicking.