Skip to content

Commit f5d43e2

Browse files
authored
Merge pull request swiftlang#15309 from graydon/improve-comment-on-commandoutput
[Driver] Clarify comment on CommandOutput::Inputs.
2 parents 607d311 + fce5ed3 commit f5d43e2

File tree

1 file changed

+6
-3
lines changed
  • include/swift/Driver

1 file changed

+6
-3
lines changed

include/swift/Driver/Job.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,12 @@ class CommandOutput {
119119
/// DerivedOutputFileMap.
120120
llvm::SmallSet<types::ID, 4> AdditionalOutputTypes;
121121

122-
/// The set of input filenames for this \c CommandOutput; combined with \c
123-
/// DerivedOutputMap, specifies a set of output filenames (of which one -- the
124-
/// one of type \c PrimaryOutputType) is the primary output filename.
122+
/// The list of inputs for this \c CommandOutput. Each input in the list has
123+
/// two names (often but not always the same), of which the second (\c
124+
/// CommandInputPair::Primary) acts as a key into \c DerivedOutputMap. Each
125+
/// input thus designates an associated _set_ of outputs, one of which (the
126+
/// one of type \c PrimaryOutputType) is considered the "primary output" for
127+
/// the input.
125128
SmallVector<CommandInputPair, 1> Inputs;
126129

127130
/// All CommandOutputs in a Compilation share the same \c

0 commit comments

Comments
 (0)