Commit 6610439
committed
[Sema/SourceKit] Emit same diagnostics for missing protocol requirements on the command line and in SourceKit
Some editors use diagnostics from SourceKit to replace build issues. This causes issues if the diagnostics from SourceKit are formatted differently than the build issues. Make sure they are rendered the same way, removing most uses of `DiagnosticsEditorMode`.
To do so, always emit the `add stubs for conformance` note (which previously was only emitted in editor mode) and remove all `; add <something>` suffixes from notes that state which requirements are missing.
rdar://1292836081 parent 2b2b763 commit 6610439
File tree
143 files changed
+889
-690
lines changed- include/swift/AST
- lib/Sema
- test
- AssociatedTypeInference
- AutoDiff/Sema
- DerivedConformances
- ImplicitDifferentiableAttributeCrossFile
- ClangImporter
- Compatibility
- Concurrency
- Constraints
- Distributed
- Macros
- Generics
- IDE
- Interop/Cxx/class
- NameLookup
- Parse
- Sema
- Serialization/Recovery
- SourceKit/Sema
- TypeCoercion
- attr
- decl
- enum
- ext
- func
- nested
- protocol
- conforms
- req
- special
- coding
- comparable
- subscript
- typealias
- multifile
- Inputs
- external-protocol-conformance
- protocol-conformance
- stdlib
- stmt
- type
- implicit_some
- validation-test
- ParseableInterface
- Sema
- SwiftUI
- type_checker_crashers_fixed
- compiler_crashers_2_fixed
- stdlib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
143 files changed
+889
-690
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2944 | 2944 | | |
2945 | 2945 | | |
2946 | 2946 | | |
2947 | | - | |
2948 | | - | |
2949 | | - | |
| 2947 | + | |
| 2948 | + | |
2950 | 2949 | | |
2951 | 2950 | | |
2952 | 2951 | | |
| |||
2960 | 2959 | | |
2961 | 2960 | | |
2962 | 2961 | | |
2963 | | - | |
| 2962 | + | |
2964 | 2963 | | |
2965 | 2964 | | |
2966 | | - | |
2967 | | - | |
| 2965 | + | |
2968 | 2966 | | |
2969 | 2967 | | |
2970 | 2968 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3474 | 3474 | | |
3475 | 3475 | | |
3476 | 3476 | | |
3477 | | - | |
3478 | | - | |
3479 | | - | |
3480 | | - | |
3481 | | - | |
3482 | 3477 | | |
3483 | 3478 | | |
3484 | 3479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2116 | 2116 | | |
2117 | 2117 | | |
2118 | 2118 | | |
2119 | | - | |
| 2119 | + | |
2120 | 2120 | | |
2121 | 2121 | | |
2122 | 2122 | | |
| |||
2146 | 2146 | | |
2147 | 2147 | | |
2148 | 2148 | | |
2149 | | - | |
2150 | | - | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
2151 | 2152 | | |
2152 | 2153 | | |
2153 | 2154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
642 | | - | |
| 641 | + | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
616 | 614 | | |
617 | 615 | | |
618 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1644 | 1644 | | |
1645 | 1645 | | |
1646 | 1646 | | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
1652 | 1651 | | |
1653 | 1652 | | |
1654 | 1653 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3825 | 3825 | | |
3826 | 3826 | | |
3827 | 3827 | | |
3828 | | - | |
3829 | | - | |
3830 | | - | |
3831 | | - | |
3832 | | - | |
3833 | | - | |
3834 | | - | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
3835 | 3831 | | |
3836 | | - | |
3837 | | - | |
3838 | 3832 | | |
3839 | 3833 | | |
3840 | 3834 | | |
| |||
3843 | 3837 | | |
3844 | 3838 | | |
3845 | 3839 | | |
3846 | | - | |
3847 | | - | |
3848 | | - | |
3849 | | - | |
3850 | | - | |
3851 | 3840 | | |
3852 | 3841 | | |
3853 | 3842 | | |
| |||
3859 | 3848 | | |
3860 | 3849 | | |
3861 | 3850 | | |
3862 | | - | |
3863 | | - | |
3864 | | - | |
3865 | | - | |
3866 | | - | |
3867 | | - | |
3868 | | - | |
3869 | | - | |
3870 | | - | |
3871 | | - | |
3872 | | - | |
3873 | | - | |
3874 | | - | |
3875 | | - | |
3876 | | - | |
| 3851 | + | |
3877 | 3852 | | |
3878 | 3853 | | |
3879 | 3854 | | |
3880 | 3855 | | |
3881 | 3856 | | |
3882 | 3857 | | |
3883 | | - | |
3884 | | - | |
3885 | | - | |
3886 | | - | |
3887 | | - | |
3888 | | - | |
3889 | | - | |
3890 | | - | |
3891 | | - | |
3892 | | - | |
3893 | | - | |
3894 | | - | |
3895 | | - | |
3896 | | - | |
3897 | | - | |
3898 | | - | |
3899 | | - | |
3900 | | - | |
3901 | | - | |
3902 | | - | |
3903 | | - | |
3904 | | - | |
3905 | | - | |
| 3858 | + | |
| 3859 | + | |
3906 | 3860 | | |
3907 | 3861 | | |
3908 | 3862 | | |
| |||
0 commit comments