[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Mon May 26 23:48:23 PDT 2025
================
@@ -166,6 +179,23 @@ class CheckerDocumentation
/// check::Bind
void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &) const {}
+ /// Called after a CFG edge is taken within a function.
+ ///
+ /// This callback can be used to obtain information about potential branching
+ /// points or any other constructs that involve traversing a CFG edge.
+ /// Note that when inlining a call, there is no CFG edge between the caller
+ /// and the callee. One will only see the edge between the entry block and
+ /// the body of the function once inlined.
----------------
balazs-benics-sonarsource wrote:
Refined the comments in 700cd9380800c9e9105787c258ff63452fd97e15
https://github.com/llvm/llvm-project/pull/140924
More information about the cfe-commits
mailing list