Skip to content

Commit d4d74e2

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-next
2 parents 1d2db4f + 2358c89 commit d4d74e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/swift-api-digester/swift-api-digester.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,8 +2192,11 @@ static int readFileLineByLine(StringRef Path, llvm::StringSet<> &Lines) {
21922192
StringRef Line;
21932193
std::tie(Line, BufferText) = BufferText.split('\n');
21942194
Line = Line.trim();
2195-
if (!Line.empty())
2196-
Lines.insert(Line);
2195+
if (Line.empty())
2196+
continue;
2197+
if (Line.startswith("// ")) // comment.
2198+
continue;
2199+
Lines.insert(Line);
21972200
}
21982201
return 0;
21992202
}

0 commit comments

Comments
 (0)