Skip to content

Commit 9f2db6c

Browse files
authored
Merge pull request swiftlang#33706 from owenv/prefix-map-diags
[swift-driver-compatibility] Update diagnostic for *-prefix-map args
2 parents 5665985 + c50e6d6 commit 9f2db6c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/swift/AST/DiagnosticsFrontend.def

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,11 @@ ERROR(error_optimization_remark_pattern, none, "%0 in '%1'",
328328
(StringRef, StringRef))
329329

330330
ERROR(error_invalid_debug_prefix_map, none,
331-
"invalid argument '%0' to -debug-prefix-map; it must be of the form "
332-
"'original=remapped'", (StringRef))
331+
"values for '-debug-prefix-map' must be in the format 'original=remapped'"
332+
", but '%0' was provided", (StringRef))
333333
ERROR(error_invalid_coverage_prefix_map, none,
334-
"invalid argument '%0' to -coverage-prefix-map; it must be of the form "
335-
"'original=remapped'", (StringRef))
334+
"values for '-coverage-prefix-map' must be in the format "
335+
"'original=remapped', but '%0' was provided", (StringRef))
336336

337337

338338
ERROR(error_unable_to_write_swift_ranges_file, none,

test/Driver/coverage-prefix-map.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %target-swiftc_driver -### -coverage-prefix-map old=n=ew %s 2>&1 | %FileCheck %s -check-prefix CHECK-COMPLEX
44
// RUN: %target-swiftc_driver -### -coverage-prefix-map old= %s 2>&1 | %FileCheck %s -check-prefix CHECK-EMPTY
55

6-
// CHECK-INVALID: error: invalid argument 'old' to -coverage-prefix-map
6+
// CHECK-INVALID: error: values for '-coverage-prefix-map' must be in the format 'original=remapped', but 'old' was provided
77
// CHECK-SIMPLE: coverage-prefix-map old=new
88
// CHECK-COMPLEX: coverage-prefix-map old=n=ew
99
// CHECK-EMPTY: coverage-prefix-map old=

test/Driver/debug-prefix-map.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %target-swiftc_driver -### -debug-prefix-map old=n=ew %s 2>&1 | %FileCheck %s -check-prefix CHECK-COMPLEX
44
// RUN: %target-swiftc_driver -### -debug-prefix-map old= %s 2>&1 | %FileCheck %s -check-prefix CHECK-EMPTY
55

6-
// CHECK-INVALID: error: invalid argument 'old' to -debug-prefix-map
6+
// CHECK-INVALID: error: values for '-debug-prefix-map' must be in the format 'original=remapped', but 'old' was provided
77
// CHECK-SIMPLE: debug-prefix-map old=new
88
// CHECK-COMPLEX: debug-prefix-map old=n=ew
99
// CHECK-EMPTY: debug-prefix-map old=

0 commit comments

Comments
 (0)