With now a clear distinction between string and numeric substitutions,
this patch introduces separate classes to represent them with a parent
class implementing the common interface. Diagnostics in
printSubstitutions() are also adapted to not require knowing which
substitution is being looked at since it does not hinder clarity and
makes the implementation simpler.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM, with two small comments. Might be best getting @probinson to give a final thumbs up though, since he suggested it.
llvm/include/llvm/Support/FileCheck.h | ||
---|---|---|
141–143 ↗ | (On Diff #200691) | The explanations of the different substitutions performed (i.e. the second and third sentences of this comment) don't belong in this class here. I'd just remove them. |
177–178 ↗ | (On Diff #200691) | Maybe better to rephrase this as "\returns a string containing the result... |