summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-16 00:06:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-16 00:06:36 +0000
commit3ce33b8640ca08ea03de86b31d87f4584a76c647 (patch)
treec67df462202c7aa86af192a19c9a88da3227c18c /llvm/utils
parentd420fd4f75830f724a8dc1d3298ac807c9e5634c (diff)
downloadbcm5719-llvm-3ce33b8640ca08ea03de86b31d87f4584a76c647.tar.gz
bcm5719-llvm-3ce33b8640ca08ea03de86b31d87f4584a76c647.zip
Update llvm{do,grep} to also search cmake / .cmake files
llvm-svn: 75867
Diffstat (limited to 'llvm/utils')
-rwxr-xr-xllvm/utils/llvmdo3
-rwxr-xr-xllvm/utils/llvmgrep2
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/llvmdo b/llvm/utils/llvmdo
index b666f2209b0..26f2183ae4e 100755
--- a/llvm/utils/llvmdo
+++ b/llvm/utils/llvmdo
@@ -53,7 +53,7 @@ if test "$1" = "-dirs" ; then
LLVMDO_DIRS="$2"
shift ; shift
elif test -z "$LLVMDO_DIRS" ; then
- LLVMDO_DIRS="include lib tools utils runtime autoconf docs test examples projects"
+ LLVMDO_DIRS="include lib tools utils runtime autoconf docs test examples projects cmake"
fi
if test "$1" = "-code-only" ; then
@@ -126,6 +126,7 @@ files_to_match="\
-o -name *.tr \
-o -name *.y \
-o -name Make* \
+ -o -name *.cmake \
-o -name llvmdo \
-o -name llvmgrep \
-o -name check-each-file \
diff --git a/llvm/utils/llvmgrep b/llvm/utils/llvmgrep
index 7d7355ba990..566ed829737 100755
--- a/llvm/utils/llvmgrep
+++ b/llvm/utils/llvmgrep
@@ -33,7 +33,7 @@ if test -d "$TOPDIR" ; then
*) grep_cmd="egrep -l -n" ;;
esac
./utils/llvmdo -topdir "$TOPDIR" \
- -dirs "include lib tools utils docs examples test projects" $grep_cmd "$*"
+ -dirs "include lib tools utils docs examples test projects cmake" $grep_cmd "$*"
else
echo "Can't find LLVM top directory"
fi
OpenPOWER on IntegriCloud