projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2461b73
)
Allow the regular expression to be extended by a parameter.
author
Reid Spencer
<rspencer@reidspencer.com>
Sat, 4 Nov 2006 00:58:39 +0000
(
00:58
+0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Sat, 4 Nov 2006 00:58:39 +0000
(
00:58
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31442
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Scripts/notcast
patch
|
blob
|
history
diff --git
a/test/Scripts/notcast
b/test/Scripts/notcast
index c6ddb4390fd54842ebbdc258d552d1da7ddf816e..e94bb1644c3e4418edcad7635c3dd5e25dac032c 100755
(executable)
--- 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