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.
2 parents d649598 + 67fc2ca commit 9132d18Copy full SHA for 9132d18
lib/ASTGen/Sources/ASTGen/Misc.swift
@@ -65,7 +65,7 @@ extension BridgedSourceLoc {
65
in buffer: UnsafeBufferPointer<UInt8>
66
) {
67
if let start = buffer.baseAddress,
68
- position.utf8Offset >= 0 && position.utf8Offset < buffer.count {
+ position.utf8Offset >= 0 && position.utf8Offset <= buffer.count {
69
self = SourceLoc_advanced(BridgedSourceLoc(raw: start), SwiftInt(position.utf8Offset))
70
} else {
71
self = nil
test/SourceKit/CursorInfo/at_eof_in_macro.swift
@@ -0,0 +1,3 @@
1
+// RUN: %sourcekitd-test -req=cursor -pos=3:37 %s -- %s
2
+@freestanding(expression)
3
+macro powerAssert() = #externalMacro
0 commit comments