Skip to content

Commit ddb567b

Browse files
committed
Swift: remove Tag nested alias in TrapLabel
1 parent f1413f2 commit ddb567b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

swift/extractor/SwiftExtractor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static void extractFile(const SwiftExtractorConfiguration& config, swift::Source
7979

8080
TrapOutput trap{trapStream};
8181
TrapArena arena{};
82-
auto label = arena.allocateLabel<File::Tag>();
82+
auto label = arena.allocateLabel<FileTag>();
8383
trap.assignStar(label);
8484
File f{};
8585
f.id = label;

swift/extractor/trap/TrapLabel.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ inline auto trapQuoted(const std::string& s) {
5959
return std::quoted(s, '"', '"');
6060
}
6161

62-
template <typename TagParam>
62+
template <typename Tag>
6363
struct Binding {
64-
using Tag = TagParam;
65-
6664
TrapLabel<Tag> id;
6765
};
6866

0 commit comments

Comments
 (0)