summaryrefslogtreecommitdiff
path: root/test/Scripts
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-04 00:58:39 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-04 00:58:39 +0000
commit023fa4105bb7396c26cf6f3d190670784a3220f3 (patch)
tree205b2459fe70b180400b985350ed5ce26396ba78 /test/Scripts
parent2461b73d9d5abe63ebe52d909b3cd07090d57c52 (diff)
Allow the regular expression to be extended by a parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Scripts')
-rwxr-xr-xtest/Scripts/notcast7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Scripts/notcast b/test/Scripts/notcast
index c6ddb4390f..e94bb1644c 100755
--- a/test/Scripts/notcast
+++ b/test/Scripts/notcast
@@ -4,9 +4,12 @@
#
# Synopsis: Returns 0 if the input does not contain a cast operator
#
-# Syntax: notcast
+# Syntax: notcast tailexpr
+#
+# tailexpr - optionally allows a regular expression to go at the end
+#
-if grep '\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)'
+if grep '\(\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)\)'"$1"
then exit 1
else exit 0
fi