Skip to content
Snippets Groups Projects
llvmgrep 332 B
Newer Older
#!/bin/sh
# This is useful because it prints out all of the source files.  Useful for
# greps.
TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
if test -d "$TOPDIR" ; then
  cd $TOPDIR
  ./utils/llvmdo -dirs "include lib tools utils docs examples test projects" egrep -H -n "$*"
else
  echo "Can't find LLVM top directory in $TOPDIR"