Okay, need a pattern before and after the cast pattern.
authorReid Spencer <rspencer@reidspencer.com>
Sat, 4 Nov 2006 01:11:19 +0000 (01:11 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 4 Nov 2006 01:11:19 +0000 (01:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31443 91177308-0d34-0410-b5e6-96231b3b80d8

test/Scripts/notcast

index e94bb1644c3e4418edcad7635c3dd5e25dac032c..fc1e566771eaa1312135fea56e7b269404740953 100755 (executable)
@@ -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