mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Swift: add a comment about lifetime
This commit is contained in:
@@ -53,6 +53,7 @@ std::string inline getKindName<swift::TypeRepr, swift::TypeReprKind>(swift::Type
|
||||
// node (AST nodes that are not types: declarations, statements, expressions, etc.).
|
||||
class SwiftDispatcher {
|
||||
public:
|
||||
// sourceManager, arena, and trap are supposed to outlive the SwiftDispatcher
|
||||
SwiftDispatcher(const swift::SourceManager& sourceManager, TrapArena& arena, TrapOutput& trap)
|
||||
: sourceManager{sourceManager}, arena{arena}, trap{trap} {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user