diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-04 01:11:19 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-04 01:11:19 +0000 |
commit | 5d528947833ee03f6f557dc0694bc3713b925a6c (patch) | |
tree | 359715dbbabcd7ed56747ce74719b3439a8beafb /test/Scripts | |
parent | 023fa4105bb7396c26cf6f3d190670784a3220f3 (diff) | |
download | external_llvm-5d528947833ee03f6f557dc0694bc3713b925a6c.zip external_llvm-5d528947833ee03f6f557dc0694bc3713b925a6c.tar.gz external_llvm-5d528947833ee03f6f557dc0694bc3713b925a6c.tar.bz2 |
Okay, need a pattern before and after the cast pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Scripts')
-rwxr-xr-x | test/Scripts/notcast | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Scripts/notcast b/test/Scripts/notcast index e94bb16..fc1e566 100755 --- a/test/Scripts/notcast +++ b/test/Scripts/notcast @@ -6,10 +6,11 @@ # # Syntax: notcast tailexpr # -# tailexpr - optionally allows a regular expression to go at the end +# postpat - optionally allows a regular expression to go at the end +# prepat - optionally allow a regular expression to go at the start # -if grep '\(\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)\)'"$1" +if grep "$2"'\(\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)\)'"$1" then exit 1 else exit 0 fi |