aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
diff options
context:
space:
mode:
authorRyosuke Niwa <rniwa@webkit.org>2024-02-14 18:46:30 -0800
committerGitHub <noreply@github.com>2024-02-14 18:46:30 -0800
commita7982d5e7a16f681e80891a819bdf14dde928755 (patch)
tree4537a94588fa95e93b8cd381d13035893f56b967 /llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
parentff409d39ce4673c70f474c3fdb7120bab8f94eef (diff)
downloadllvm-a7982d5e7a16f681e80891a819bdf14dde928755.zip
llvm-a7982d5e7a16f681e80891a819bdf14dde928755.tar.gz
llvm-a7982d5e7a16f681e80891a819bdf14dde928755.tar.bz2
[analyzer] UncountedCallArgsChecker: Detect & ignore trivial function calls. (#81808)
This PR introduces the concept of a "trivial function" which applies to a function that only calls other trivial functions and contain literals and expressions that don't result in heap mutations (specifically it does not call deref). This is implemented using ConstStmtVisitor and checking each statement and expression's trivialness. This PR also introduces the concept of a "ingleton function", which is a static member function or a free standing function which ends with the suffix "singleton". Such a function's return value is understood to be safe to call any function with.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions