aboutsummaryrefslogtreecommitdiffstats
path: root/utils/llvmgrep
Commit message (Collapse)AuthorAgeFilesLines
* search unittests.Chris Lattner2009-08-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79884 91177308-0d34-0410-b5e6-96231b3b80d8
* Update llvm{do,grep} to also search cmake / .cmake filesDaniel Dunbar2009-07-161-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75867 91177308-0d34-0410-b5e6-96231b3b80d8
* remove attributions from utils.Chris Lattner2007-12-291-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45419 91177308-0d34-0410-b5e6-96231b3b80d8
* This script takes arguments so remove the check for number of arguments,Reid Spencer2006-08-151-7/+5
| | | | | | | just check the first arg to see if its -topdir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29694 91177308-0d34-0410-b5e6-96231b3b80d8
* Make all tools that use llvmdo have a -topdir option that allows the topReid Spencer2006-08-141-3/+12
| | | | | | | | | | | | source dir for LLVM to be specified explicitly. This removes the dependency on the llvm-config script. If the option is not given, then the scripts use llvm-config which should be both built and in the PATH. This arrangement provides a useful default for most developers but also allows the nightly tester to execute countloc.sh before llvm-config is built and without altering the PATH. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29663 91177308-0d34-0410-b5e6-96231b3b80d8
* Make llvmdo and llvmgrep invulnerable to where they are run from by gettingReid Spencer2006-08-111-2/+1
| | | | | | | | | the llvm source root from the llvm-config command. The dependency now is that the correct llvm-config command is in the path. For most developers this is the case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29630 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow a sequence of digits at the end of the directory name when trying toReid Spencer2006-03-141-1/+2
| | | | | | | | | | | | | | | | determine the top directory. This allows the tool to find the correct top directory when you have something like: /x/llvm /x/llvm2 /x/llvm3 Previously the scripts would always find /x/llvm even if you were in the llvm2 or llvm3 directory because the pattern didn't allow the digits at the end of the path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26751 91177308-0d34-0410-b5e6-96231b3b80d8
* Make these scripts work on SunOS too.Reid Spencer2004-10-071-1/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16805 91177308-0d34-0410-b5e6-96231b3b80d8
* Documentation upgrade.Reid Spencer2004-09-201-2/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16445 91177308-0d34-0410-b5e6-96231b3b80d8
* Base the implementation on the llvmdo script so that we only have toReid Spencer2004-09-201-17/+2
| | | | | | | maintain the logic for "what counts as a source file" in one place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16442 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't include libtool "object" filesChris Lattner2004-09-181-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16391 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the examples directory to these scripts.Reid Spencer2004-08-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16030 91177308-0d34-0410-b5e6-96231b3b80d8
* Include .td and .txt files in the greps. This will allow me to find symbols inChris Lattner2004-08-151-1/+1
| | | | | | | them, and also count them in the LOC of LLVM for the nightly tester. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15786 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some thinkos in the script (error handling, proper argument handling).Reid Spencer2004-07-071-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14676 91177308-0d34-0410-b5e6-96231b3b80d8
* A utility to search the LLVM source tree for a grep pattern. This is aReid Spencer2004-06-191-0/+22
replacement for getsrcs.sh which now generates too much text to put on a Linux command line. The approach taken with llvmgrep is to execute a find command and execute a grep on each file that matches the name pattern. The arguments to this script are the same as those of egrep. Note that the -H and -n options to egrep will always be passed so that you always get the file and line number of matches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14255 91177308-0d34-0410-b5e6-96231b3b80d8