aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorNagyDonat <donat.nagy@ericsson.com>2024-03-12 13:51:12 +0100
committerGitHub <noreply@github.com>2024-03-12 13:51:12 +0100
commit80ab8234ac309418637488b97e0a62d8377b2ecf (patch)
treec2651d28336739cb0b0fc83cc1a09c5d762ea1f7 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parentb5a16b6d8ad51df7c14cd696f3dc1f98b6984905 (diff)
downloadllvm-80ab8234ac309418637488b97e0a62d8377b2ecf.zip
llvm-80ab8234ac309418637488b97e0a62d8377b2ecf.tar.gz
llvm-80ab8234ac309418637488b97e0a62d8377b2ecf.tar.bz2
[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: Balazs Benics <benicsbalazs@gmail.com>
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions