From 4f80d718eb92506739fc78804b7b0fd3a5e15aa3 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 16 Jul 2009 00:06:36 +0000 Subject: [PATCH] Update llvm{do,grep} to also search cmake / .cmake files git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75867 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/llvmdo | 3 ++- utils/llvmgrep | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/llvmdo b/utils/llvmdo index b666f2209b0..26f2183ae4e 100755 --- a/utils/llvmdo +++ b/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/utils/llvmgrep b/utils/llvmgrep index 7d7355ba990..566ed829737 100755 --- a/utils/llvmgrep +++ b/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