Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/utils/FileCheck/FileCheck.cpp | ||
---|---|---|
27–29 ↗ | (On Diff #213215) | Do I read this right and the options in effect are the union of those specified in FILECHECK_OPTS and those on the command-line? |
llvm/utils/FileCheck/FileCheck.cpp | ||
---|---|---|
27–29 ↗ | (On Diff #213215) | Yes. Interestingly, FILECHECK_OPTS is parsed before command-line options. However, at the time I implemented FILECHECK_OPTS, the only option I found where the order of multiple occurrences mattered was -D, and it gives precedence to earlier occurrences. That's surely wrong, and I think multiple definitions for the same variable should be an error instead, but I haven't found time to propose something. |
LGTM.
llvm/utils/FileCheck/FileCheck.cpp | ||
---|---|---|
27–29 ↗ | (On Diff #213215) | Alright, LGTM then. I'm not sure about forbidding multiple definitions of the same variable, I think it makes sense to redefine a variable in a CHECK directive (eg. lots of tests with REG being defined, although --enable-var-scope should probably be used in that case). It makes less sense on the command-line for sure and I would agree making it an error. |
llvm/utils/FileCheck/FileCheck.cpp | ||
---|---|---|
27–29 ↗ | (On Diff #213215) | I just meant on the command line. Thanks for the review! |