Processing of command-line definition of variable and logic around
implicit not directives both reuse parsing code that expects a line
number to be defined. So far, a special line number of 0 was used for
those users of the parsing code where a line number does not make sense.
This commit instead represents line numbers as Optional values so that
they can be None for those cases.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good, aside from one question.
llvm/lib/Support/FileCheck.cpp | ||
---|---|---|
186 ↗ | (On Diff #209487) | Is the IsPseudo field here redundant now? Are there pseudo variables with a defined line number? |
Comment Actions
Address review comment
llvm/lib/Support/FileCheck.cpp | ||
---|---|---|
186 ↗ | (On Diff #209487) | No indeed and even if there as it's irrelevant. What matters is whether the Definition line number is same the current line. |