[clang] [clang][analyzer] Add missing stream related functions to StdCLibraryFunctionsChecker. (PR #76979)

Balázs Kéri via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 04:18:46 PST 2024


balazske wrote:

> Why do we need to keep these two checkers in-sync?

Technically the checkers work independently. There is a functionality that is added by `StdLibraryFunctionsChecker`, the modeling of `errno` (this works even if `StreamChecker` is not used), and maybe some preconditions are more exact. And I think it is better if a function is handled by one checker, then the same function is recognized by another (and related) checker. `StdLibraryFunctionsChecker` currently contains a subset of the C or POSIX API functions and it looks difficult for an user to tell what these functions are and why are some missing.


https://github.com/llvm/llvm-project/pull/76979


More information about the cfe-commits mailing list