[llvm-commits] CVS: llvm/test/Scripts/notcast
Reid Spencer
reid at x10sys.com
Fri Nov 3 17:11:33 PST 2006
Changes in directory llvm/test/Scripts:
notcast updated: 1.2 -> 1.3
---
Log message:
Okay, need a pattern before and after the cast pattern.
---
Diffs of the changes: (+3 -2)
notcast | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/test/Scripts/notcast
diff -u llvm/test/Scripts/notcast:1.2 llvm/test/Scripts/notcast:1.3
--- llvm/test/Scripts/notcast:1.2 Fri Nov 3 18:58:39 2006
+++ llvm/test/Scripts/notcast Fri Nov 3 19:11:19 2006
@@ -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
More information about the llvm-commits
mailing list