Skip to content

Commit 2126f72

Browse files
author
David Ungar
committed
FIx comment about diagnostic suppression.
1 parent c4f676a commit 2126f72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/swift/AST/DiagnosticConsumer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,9 @@ class FileSpecificDiagnosticConsumer : public DiagnosticConsumer {
188188
/// None if diagnostic is to be distributed to every consumer,
189189
/// a particular consumer if diagnostic goes there.
190190
///
191-
/// (For Xcode compatibility, batch mode must suppress diagnostics to
192-
/// non-primaries.)
191+
/// (If batch mode failed to suppress diagnostics for non-primary files, it
192+
/// would end up writing each of those diagnostics in each primary file's
193+
/// serialized diagnostic file.)
193194
Optional<DiagnosticConsumer *> consumerForLocation(SourceManager &SM,
194195
SourceLoc loc) const;
195196
};

0 commit comments

Comments
 (0)