Skip to content

Commit 700cd93

Browse files
Refine comments
1 parent 67086e1 commit 700cd93

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,20 @@ class CheckerDocumentation
183183
///
184184
/// This callback can be used to obtain information about potential branching
185185
/// points or any other constructs that involve traversing a CFG edge.
186-
/// Note that when inlining a call, there is no CFG edge between the caller
187-
/// and the callee. One will only see the edge between the entry block and
188-
/// the body of the function once inlined.
189186
///
190187
/// check::BranchCondition is a similar callback, which is only invoked for
191188
/// pre-visiting the condition statement of a branch. Prefer that callback if
192189
/// possible.
193190
///
191+
/// \remark There is no CFG edge from the caller to a callee, consequently
192+
/// this callback is not invoked for "inlining" a function call.
193+
/// \remark Once a function call is inlined, we will start from the imaginary
194+
/// "entry" basic block of that CFG. This callback will be invoked for
195+
/// entering the real first basic block of the "inlined" function body from
196+
/// that "entry" basic block.
197+
/// \remark This callback is also invoked for entering the imaginary "exit"
198+
/// basic block of the CFG when returning from a function.
199+
///
194200
/// \param E The ProgramPoint that describes the transition.
195201
///
196202
/// check::BlockEntrance

0 commit comments

Comments
 (0)