[PATCH] D132513: [lit] Implement DEFINE and REDEFINE directives
Joel E. Denny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 7 12:16:15 PDT 2022
jdenny updated this revision to Diff 458525.
jdenny marked 9 inline comments as done.
jdenny added a comment.
Applied reviewer suggestions:
- Restored some existing `%(line)` documentation.
- Added python docstrings.
- Fixed parameter list on `add_continuation`, which was inconsistent between `ScriptDirective` and derived classes.
- Switched to python f-strings.
- Clarified that some substitutions in test code are discouraged.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132513/new/
https://reviews.llvm.org/D132513
Files:
clang/test/CodeGen/attr-noundef.cpp
clang/test/CodeGen/indirect-noundef.cpp
clang/test/Preprocessor/init.c
llvm/docs/TestingGuide.rst
llvm/test/tools/llvm-cvtres/help.test
llvm/test/tools/yaml2obj/ELF/custom-null-section.yaml
llvm/utils/lit/lit/TestRunner.py
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/before-name.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/between-name-equals.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-empty.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-dot.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-equals.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-newline.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-number.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-ws.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/empty.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/no-equals.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/no-name.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/ws-only.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/empty.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/end-in-double-backslash.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-define-bad-redefine.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-define-redefine.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-define-run.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-define.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-redefine-bad-define.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-redefine-define.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-redefine-run.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-redefine.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-run-define.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-run-redefine.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/ws-only.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-already-by-config.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-already-by-test.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-inside-pattern.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-multiple-exact.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-multiple-once-exact.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-prefixes-pattern.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-suffixes-pattern.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-inside-pattern.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-multiple-exact.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-multiple-once-exact.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-none.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-prefixes-pattern.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-suffixes-pattern.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/location-range.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/no-run.txt
llvm/utils/lit/tests/Inputs/shtest-define/examples/param-subst.txt
llvm/utils/lit/tests/Inputs/shtest-define/expansion-order.txt
llvm/utils/lit/tests/Inputs/shtest-define/line-number-substitutions.txt
llvm/utils/lit/tests/Inputs/shtest-define/lit.cfg
llvm/utils/lit/tests/Inputs/shtest-define/name-chars.txt
llvm/utils/lit/tests/Inputs/shtest-define/recursiveExpansionLimit.txt
llvm/utils/lit/tests/Inputs/shtest-define/shared-substs-0.txt
llvm/utils/lit/tests/Inputs/shtest-define/shared-substs-1.txt
llvm/utils/lit/tests/Inputs/shtest-define/value-equals.txt
llvm/utils/lit/tests/Inputs/shtest-define/value-escaped.txt
llvm/utils/lit/tests/Inputs/shtest-define/ws-and-continuations.txt
llvm/utils/lit/tests/shtest-define.py
llvm/utils/lit/tests/shtest-keyword-parse-errors.py
llvm/utils/lit/tests/unit/TestRunner.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132513.458525.patch
Type: text/x-patch
Size: 84071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220907/0e2fe2c3/attachment-0001.bin>
More information about the llvm-commits
mailing list