summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny.ornl@gmail.com>2018-05-30 19:42:27 +0000
committerJoel E. Denny <jdenny.ornl@gmail.com>2018-05-30 19:42:27 +0000
commitb6423479a185d268baf5a2f88809a819d4892264 (patch)
tree8b97568185442d6bccee897d11a04bb836f9c132 /clang/lib/Frontend/InitPreprocessor.cpp
parentc1cd8262488f6bd6182664dc5f76c4190a5dbbec (diff)
downloadbcm5719-llvm-b6423479a185d268baf5a2f88809a819d4892264.tar.gz
bcm5719-llvm-b6423479a185d268baf5a2f88809a819d4892264.zip
[lit] Report line number for failed RUN command
(Relands r330755 (reverted in r330848) with fix for PR37239.) When debugging test failures with -vv (or -v in the case of the internal shell), this makes it easier to locate the RUN line that failed. For example, clang's test/Driver/linux-ld.c has 892 total RUN lines, and clang's test/Driver/arm-cortex-cpus.c has 424 RUN lines after concatenation for line continuations. When reading the generated shell script, this also makes it easier to locate the RUN line that produced each command. To support reporting RUN line numbers in the case of the internal shell, this patch extends the internal shell to support the null command, ":", except pipelines are not supported. To support reporting RUN line numbers in the case of windows cmd.exe as the external shell, this patch extends -vv to set "echo on" instead of "echo off" in bat files. (Support for windows cmd.exe as a lit external shell will likely be dropped later, but I found out too late.) Reviewed By: delcypher, asmith, stella.stamenova, jmorse, lebedev.ri, rnk Differential Revision: https://reviews.llvm.org/D44598 llvm-svn: 333584
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud