llvm.org GIT mirror llvm / 4f80d71
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 Daniel Dunbar 10 years ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5252 LLVMDO_DIRS="$2"
5353 shift ; shift
5454 elif test -z "$LLVMDO_DIRS" ; then
55 LLVMDO_DIRS="include lib tools utils runtime autoconf docs test examples projects"
55 LLVMDO_DIRS="include lib tools utils runtime autoconf docs test examples projects cmake"
5656 fi
5757
5858 if test "$1" = "-code-only" ; then
125125 -o -name *.tr \
126126 -o -name *.y \
127127 -o -name Make* \
128 -o -name *.cmake \
128129 -o -name llvmdo \
129130 -o -name llvmgrep \
130131 -o -name check-each-file \
3232 *) grep_cmd="egrep -l -n" ;;
3333 esac
3434 ./utils/llvmdo -topdir "$TOPDIR" \
35 -dirs "include lib tools utils docs examples test projects" $grep_cmd "$*"
35 -dirs "include lib tools utils docs examples test projects cmake" $grep_cmd "$*"
3636 else
3737 echo "Can't find LLVM top directory"
3838 fi