Skip to content

Commit bb131fb

Browse files
committed
Expand parameter description.
1 parent 9d99eb7 commit bb131fb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/swift/AST/DiagnosticConsumer.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class DiagnosticConsumer {
7979

8080
public:
8181
virtual ~DiagnosticConsumer();
82-
82+
8383
/// Invoked whenever the frontend emits a diagnostic.
8484
///
8585
/// \param SM The source manager associated with the source locations in
@@ -94,6 +94,14 @@ class DiagnosticConsumer {
9494
/// \param FormatArgs The diagnostic format string arguments.
9595
///
9696
/// \param Info Extra information associated with the diagnostic.
97+
///
98+
/// \param bufferIndirectlyCausingDiagnostic Only used when directing
99+
/// diagnostics to different outputs.
100+
/// In batch mode a diagnostic may be
101+
/// located in a non-primary file, but there will be no .dia file for a
102+
/// non-primary. If valid, this argument contains a location within a buffer
103+
/// that corresponds to a primary input. The .dia file for that primary can be
104+
/// used for the diagnostic, as if it had occurred at this location.
97105
virtual void
98106
handleDiagnostic(SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
99107
StringRef FormatString,

0 commit comments

Comments
 (0)