Skip to content

Commit cba4ae8

Browse files
committed
Better comment.
1 parent 8448da3 commit cba4ae8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/AST/DiagnosticConsumer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ FileSpecificDiagnosticConsumer::subconsumerForLocation(SourceManager &SM,
118118
if (loc.isInvalid())
119119
return None;
120120

121-
// What if a there's a consumer for fixits but there is no fixits output path?
122-
// Subconsumers will be empty in that case.
121+
// What if a there's a FileSpecificDiagnosticConsumer but there are no
122+
// subconsumers in it? (This situation obtains for the fix-its
123+
// FileSpecificDiagnosticConsumer.) In such a case, bail out now.
123124
if (Subconsumers.empty())
124125
return None;
125126

0 commit comments

Comments
 (0)