mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
swift-module-digester: refactor the ABI/API diagnostics to use DiagnosticEngine. NFC (#18957)
Before this patch, we used to define tooling-specific diagnostics. With adding more checking logics, we found this mechanism hard to extend. This patch eliminates the home-made diagnostics model to use the one from compiler, which provides several benefits: less boiler-templates, better integration with DiagnosticConsumer, and easy ordering of detected issues.
This commit is contained in:
@@ -60,6 +60,11 @@ raw_ostream &operator<<(raw_ostream &Out, const NodeAnnotation Value);
|
||||
// Redefine << so that we can output the name of the node kind.
|
||||
raw_ostream &operator<<(raw_ostream &Out, const SDKNodeKind Value);
|
||||
|
||||
StringRef getDeclKindStr(const DeclKind Value);
|
||||
|
||||
// Redefine << so that we can output the name of decl kind.
|
||||
raw_ostream &operator<<(raw_ostream &Out, const DeclKind Value);
|
||||
|
||||
struct APIDiffItem {
|
||||
virtual void streamDef(llvm::raw_ostream &S) const = 0;
|
||||
virtual APIDiffItemKind getKind() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user