Skip to content

Commit d7f4c6f

Browse files
committed
Swift: add a comment about lifetime
1 parent c925766 commit d7f4c6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

swift/extractor/SwiftDispatcher.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ std::string inline getKindName<swift::TypeRepr, swift::TypeReprKind>(swift::Type
5353
// node (AST nodes that are not types: declarations, statements, expressions, etc.).
5454
class SwiftDispatcher {
5555
public:
56+
// sourceManager, arena, and trap are supposed to outlive the SwiftDispatcher
5657
SwiftDispatcher(const swift::SourceManager& sourceManager, TrapArena& arena, TrapOutput& trap)
5758
: sourceManager{sourceManager}, arena{arena}, trap{trap} {}
5859

0 commit comments

Comments
 (0)