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
- rG LLVM Github Monorepo
- Build Status
Buildable 32291 Build 32290: arc lint + arc unit
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 | 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 | Maybe better to rephrase this as "\returns a string containing the result... |
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.