We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4f676a commit 2126f72Copy full SHA for 2126f72
include/swift/AST/DiagnosticConsumer.h
@@ -188,8 +188,9 @@ class FileSpecificDiagnosticConsumer : public DiagnosticConsumer {
188
/// None if diagnostic is to be distributed to every consumer,
189
/// a particular consumer if diagnostic goes there.
190
///
191
- /// (For Xcode compatibility, batch mode must suppress diagnostics to
192
- /// non-primaries.)
+ /// (If batch mode failed to suppress diagnostics for non-primary files, it
+ /// would end up writing each of those diagnostics in each primary file's
193
+ /// serialized diagnostic file.)
194
Optional<DiagnosticConsumer *> consumerForLocation(SourceManager &SM,
195
SourceLoc loc) const;
196
};
0 commit comments