We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c76968 commit 276238aCopy full SHA for 276238a
Sources/Clang/TranslationUnit.swift
@@ -203,7 +203,7 @@ public class TranslationUnit {
203
clang_annotateTokens(clang, buf.baseAddress,
204
UInt32(buf.count), cursors)
205
}
206
- return (0..<toks.count).map { convertCursor(cursors[$0])! }
+ return (0..<toks.count).flatMap { convertCursor(cursors[$0]) }
207
208
209
deinit {
0 commit comments