File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
#include < cstdint>
6
6
7
7
void test () {
8
- uint64_t /* unused_b*/ b;
8
+ uint64_t /* unused_b*/ b/* <unused_b:end */ ;
9
9
}
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ final class LocalClangTests: XCTestCase {
142
142
XCTAssertNil ( resp)
143
143
}
144
144
145
-
146
145
func testClangStdHeaderCanary( ) throws {
147
146
guard let ws = try staticSourceKitTibsWorkspace ( name: " ClangStdHeaderCanary " ) else { return }
148
147
if ToolchainRegistry . shared. default? . clangd == nil { return }
@@ -154,7 +153,7 @@ final class LocalClangTests: XCTestCase {
154
153
ws. sk. handleNextNotification { ( note: Notification < PublishDiagnostics > ) in
155
154
XCTAssertEqual ( note. params. diagnostics, [
156
155
Diagnostic (
157
- range: Position ( loc) ..< Position ( line : loc . line - 1 , utf16index : loc . column ) ,
156
+ range: Position ( loc) ..< Position ( ws . testLoc ( " unused_b:end " ) ) ,
158
157
severity: . warning,
159
158
source: nil ,
160
159
message: " Unused variable 'b' " )
You can’t perform that action at this time.
0 commit comments