Unverified Commit 80ab8234 authored by NagyDonat's avatar NagyDonat Committed by GitHub
Browse files

[analyzer] Accept C library functions from the `std` namespace (#84469)



Previously, the function `isCLibraryFunction()` and logic relying on it
only accepted functions that are declared directly within a TU (i.e. not
in a namespace or a class). However C++ headers like <cstdlib> declare
many C standard library functions within the namespace `std`, so this
commit ensures that functions within the namespace `std` are also
accepted.

After this commit it will be possible to match functions like `malloc`
or `free` with `CallDescription::Mode::CLibrary`.

---------

Co-authored-by: default avatarBalazs Benics <benicsbalazs@gmail.com>
parent b5a16b6d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment