Skip to content

Commit 4318065

Browse files
committed
Add comment about InitializeLoc
1 parent 0b92eba commit 4318065

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

clang/include/clang/Analysis/FlowSensitive/SmartPointerAccessorCaching.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ ast_matchers::StatementMatcher isSmartPointerLikeGetMethodCall();
7676
const FunctionDecl *
7777
getCanonicalSmartPointerLikeOperatorCallee(const CallExpr *CE);
7878

79-
/// A transfer function for `operator*` (and `value`) calls
80-
/// that can be cached.
79+
/// A transfer function for `operator*` (and `value`) calls that can be
80+
/// cached. Runs the `InitializeLoc` callback to initialize any new
81+
/// StorageLocations.
8182
///
8283
/// Requirements:
8384
///
@@ -88,8 +89,8 @@ void transferSmartPointerLikeCachedDeref(
8889
TransferState<LatticeT> &State,
8990
llvm::function_ref<void(StorageLocation &)> InitializeLoc);
9091

91-
/// A transfer function for `operator->` (and `get`) calls
92-
/// that can be cached.
92+
/// A transfer function for `operator->` (and `get`) calls that can be cached.
93+
/// Runs the `InitializeLoc` callback to initialize any new StorageLocations.
9394
///
9495
/// Requirements:
9596
///

0 commit comments

Comments
 (0)