mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #23735 from davidungar/tracking-primary
[Batch mode] Cope with bugs that cause error suppression.
This commit is contained in:
@@ -46,11 +46,12 @@ class StreamDiagConsumer : public DiagnosticConsumer {
|
||||
public:
|
||||
StreamDiagConsumer(llvm::raw_ostream &OS) : OS(OS) {}
|
||||
|
||||
void handleDiagnostic(SourceManager &SM, SourceLoc Loc,
|
||||
DiagnosticKind Kind,
|
||||
StringRef FormatString,
|
||||
ArrayRef<DiagnosticArgument> FormatArgs,
|
||||
const DiagnosticInfo &Info) override {
|
||||
void
|
||||
handleDiagnostic(SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
|
||||
StringRef FormatString,
|
||||
ArrayRef<DiagnosticArgument> FormatArgs,
|
||||
const DiagnosticInfo &Info,
|
||||
const SourceLoc bufferIndirectlyCausingDiagnostic) override {
|
||||
// FIXME: Print location info if available.
|
||||
switch (Kind) {
|
||||
case DiagnosticKind::Error: OS << "error: "; break;
|
||||
|
||||
Reference in New Issue
Block a user