Files
clang-p2996/clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
Donát Nagy 6d64f8e1fe [analyzer] Use explicit call description mode in more checkers (#90974)
This commit explicitly specifies the matching mode (C library function,
any non-method function, or C++ method) for the `CallDescription`s
constructed in various checkers.

Some code was simplified to use `CallDescriptionSet`s instead of
individual `CallDescription`s.

This change won't cause major functional changes, but isn't NFC because
it ensures that e.g. call descriptions for a non-method function won't
accidentally match a method that has the same name.

Separate commits have already performed this change in other checkers:
- easy cases: e2f1cbae45
- MallocChecker: d6d84b5d14
- iterator checkers: 06eedffe0d
- InvalidPtr checker: 024281d4d2

... and follow-up commits will handle the remaining checkers.

My goal is to ensure that the call description mode is always explicitly
specified and eliminate (or strongly restrict) the vague "may be either
a method or a simple function" mode that's the current default.
2024-05-07 13:48:02 +02:00

12 KiB