File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11
11
12
12
// RUN: not %target-swift-frontend -color-diagnostics -diagnostic-style=llvm -print-educational-notes -diagnostic-documentation-path %S/../diagnostics/test-docs/ \
13
13
// RUN: -emit-module -emit-module-path %t/test.module @%t/MyApp.cmd %s 2>&1 | %FileCheck %s --match-full-lines --strict-whitespace
14
- // RUN: not %target-swift-frontend -no-color-diagnostics -print-educational-notes -diagnostic-documentation-path %S/../diagnostics/test-docs/ \
14
+ // RUN: not %target-swift-frontend -no-color-diagnostics -diagnostic-style=llvm -print-educational-notes -diagnostic-documentation-path %S/../diagnostics/test-docs/ \
15
15
// RUN: -emit-module -emit-module-path %t/test.module @%t/MyApp.cmd %s 2>&1 | %FileCheck %s --match-full-lines --strict-whitespace --check-prefix=NO-COLOR
16
16
17
17
// A diagnostic with no educational notes
Original file line number Diff line number Diff line change 35
35
case A
36
36
case B = 0
37
37
// DUPLICATE_CASES: :[[@LINE-1]]:12: error: raw value for enum case is not unique
38
- // DUPLICATE_CASES: :[[@LINE-3]]:8: note: raw value previously used here
39
- // DUPLICATE_CASES: :[[@LINE-4]]:8: note: raw value implicitly auto-incremented from zero
38
+ // DUPLICATE_CASES: note: raw value previously used here
39
+ // DUPLICATE_CASES: note: raw value implicitly auto-incremented from zero
40
40
}
41
41
42
42
#elseif NON_INT_RAW_VALUE
Original file line number Diff line number Diff line change 1
- // RUN: not %target-swift-frontend -color-diagnostics -diagnostic-style=llvm -print-educational-notes -diagnostic-documentation-path %S/test-docs/ -typecheck %s 2>&1 | %FileCheck %s --match-full-lines --strict-whitespace
2
- // RUN: not %target-swift-frontend -no-color-diagnostics -print-educational-notes -diagnostic-documentation-path %S/test-docs/ -typecheck %s 2>&1 | %FileCheck %s --match-full-lines --strict-whitespace --check-prefix=NO-COLOR
1
+ // RUN: not %target-swift-frontend -color-diagnostics -diagnostic-style=llvm -print-educational-notes -diagnostic-documentation-path %S/test-docs/ -diagnostic-style llvm - typecheck %s 2>&1 | %FileCheck %s --match-full-lines --strict-whitespace
2
+ // RUN: not %target-swift-frontend -no-color-diagnostics -print-educational-notes -diagnostic-documentation-path %S/test-docs/ -diagnostic-style llvm - typecheck %s 2>&1 | %FileCheck %s --match-full-lines --strict-whitespace --check-prefix=NO-COLOR
3
3
4
4
// A diagnostic with no educational notes
5
5
let x = 1 +
Original file line number Diff line number Diff line change 21
21
// RUN: cp %s %t.sources/fixits.swift
22
22
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t.overlays) -typecheck %t.sources/fixits.swift -fixit-all -emit-fixits-path %t.remapping/fixits.remap
23
23
// RUN: %{python} %utils/apply-fixit-edits.py %t.remapping
24
- // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t.overlays) -typecheck %t.sources/fixits.swift 2> %t.result
24
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t.overlays) -typecheck %t.sources/fixits.swift -diagnostic-style llvm 2> %t.result
25
25
26
26
// RUN: %FileCheck %s < %t.result
27
27
// RUN: grep -c "warning:" %t.result | grep 3
You can’t perform that action at this time.
0 commit comments