|
22 | 22 |
|
23 | 23 | #include "swift/AST/AccessorKind.h" |
24 | 24 | #include "swift/AST/DiagnosticKind.h" |
| 25 | +#include "swift/AST/DiagnosticList.h" |
25 | 26 | #include "swift/Basic/BasicBridging.h" |
26 | 27 |
|
27 | 28 | #ifdef USED_IN_CPP_SOURCE |
@@ -530,13 +531,6 @@ struct BridgedPatternBindingEntry { |
530 | 531 | // MARK: Diagnostic Engine |
531 | 532 | //===----------------------------------------------------------------------===// |
532 | 533 |
|
533 | | -// NOTE: This must be the same underlying value as C++ 'swift::DiagID' defined |
534 | | -// in 'DiagnosticList.cpp'. |
535 | | -enum ENUM_EXTENSIBILITY_ATTR(open) BridgedDiagID : uint32_t { |
536 | | -#define DIAG(KIND, ID, Group, Options, Text, Signature) BridgedDiagID_##ID, |
537 | | -#include "swift/AST/DiagnosticsAll.def" |
538 | | -}; |
539 | | - |
540 | 534 | class BridgedDiagnosticArgument { |
541 | 535 | int64_t storage[3]; |
542 | 536 |
|
@@ -579,7 +573,7 @@ class BridgedDiagnostic { |
579 | 573 | SWIFT_NAME("BridgedDiagnosticEngine.diagnose(self:at:_:_:highlightAt:" |
580 | 574 | "highlightLength:fixIts:)") |
581 | 575 | void BridgedDiagnosticEngine_diagnose( |
582 | | - BridgedDiagnosticEngine, BridgedSourceLoc loc, BridgedDiagID diagID, |
| 576 | + BridgedDiagnosticEngine, BridgedSourceLoc loc, swift::DiagID diagID, |
583 | 577 | BridgedArrayRef arguments, BridgedSourceLoc highlightStart, |
584 | 578 | uint32_t hightlightLength, BridgedArrayRef fixIts); |
585 | 579 |
|
|
0 commit comments