Skip to content

Commit 2c09962

Browse files
authored
[lldb] Handle DeclKind::MacroExpansion (#5546)
See swiftlang/swift#61662 and swiftlang/swift#61845.
1 parent caa5e8c commit 2c09962

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4140,6 +4140,7 @@ static SwiftASTContext::TypeOrDecl DeclToTypeOrDecl(swift::ASTContext *ast,
41404140
case swift::DeclKind::Param:
41414141
case swift::DeclKind::Module:
41424142
case swift::DeclKind::MissingMember:
4143+
case swift::DeclKind::MacroExpansion:
41434144
break;
41444145

41454146
case swift::DeclKind::InfixOperator:
@@ -7944,6 +7945,9 @@ static void DescribeFileUnit(Stream &s, swift::FileUnit *file_unit) {
79447945
case swift::SourceFileKind::Interface:
79457946
s.PutCString("Interface");
79467947
break;
7948+
case swift::SourceFileKind::MacroExpansion:
7949+
s.PutCString("MacroExpansion");
7950+
break;
79477951
}
79487952
}
79497953
} break;

0 commit comments

Comments
 (0)