[llvm-commits] CVS: llvm/test/Scripts/notcast
Reid Spencer
reid at x10sys.com
Fri Nov 3 16:58:53 PST 2006
Changes in directory llvm/test/Scripts:
notcast updated: 1.1 -> 1.2
---
Log message:
Allow the regular expression to be extended by a parameter.
---
Diffs of the changes: (+5 -2)
notcast | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Index: llvm/test/Scripts/notcast
diff -u llvm/test/Scripts/notcast:1.1 llvm/test/Scripts/notcast:1.2
--- llvm/test/Scripts/notcast:1.1 Fri Nov 3 18:49:52 2006
+++ llvm/test/Scripts/notcast Fri Nov 3 18:58:39 2006
@@ -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
More information about the llvm-commits
mailing list