diff options
author | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-01-14 09:29:10 +0000 |
---|---|---|
committer | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-01-14 09:29:10 +0000 |
commit | 84f4ff5119e5c29ec68093e791c926f98ea60c9c (patch) | |
tree | c24e8178fe73051726e6796f1f4f0d93ca3f73bc /lldb/packages/Python/lldbsuite/test/python_api/section/main.c | |
parent | bc5e6ee87a08618c3202eb1cecddd24267e64701 (diff) | |
download | bcm5719-llvm-84f4ff5119e5c29ec68093e791c926f98ea60c9c.tar.gz bcm5719-llvm-84f4ff5119e5c29ec68093e791c926f98ea60c9c.zip |
Detect incorrect FileCheck variable CLI definition
Summary:
While the backend code of FileCheck relies on definition of variable
from the command-line to have an equal sign '=' and a variable name
before that, the frontend does not actually enforce it. This leads to
FileCheck crashing when invoked with invalid syntax for the -D option.
This patch adds the missing validation in the frontend. It also makes
the -D option an AlwaysPrefix option to be able to detect -D=FOO as
being a define without variable and -D as missing its value.
Copyright:
- Linaro (changes in version 2 of revision D55940)
- GraphCore (changes in later versions)
Reviewers: jdenny
Subscribers: JonChesterfield, hiraditya, kristina, probinson,
llvm-commits
Differential Revision: https://reviews.llvm.org/D55940
llvm-svn: 351039
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/main.c')
0 files changed, 0 insertions, 0 deletions