aboutsummaryrefslogtreecommitdiffstats
path: root/utils/llvmdo
Commit message (Collapse)AuthorAgeFilesLines
* Update llvm{do,grep} to also search cmake / .cmake filesDaniel Dunbar2009-07-161-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75867 91177308-0d34-0410-b5e6-96231b3b80d8
* remove some exclusions that don't exist anymore.Chris Lattner2009-01-081-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61932 91177308-0d34-0410-b5e6-96231b3b80d8
* remove obsolete filesChris Lattner2008-08-111-7/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54630 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
* Ignore the .svn directories so countloc.sh and llvmgrep won't traverse them.Reid Spencer2007-07-041-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37867 91177308-0d34-0410-b5e6-96231b3b80d8
* Make all tools that use llvmdo have a -topdir option that allows the topReid Spencer2006-08-141-113/+131
| | | | | | | | | | | | 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
* Count the documentation. Otherwise we take a 30,000 hit in the LOC on theReid Spencer2006-08-131-5/+5
| | | | | | | nightly test graph. And, documentation is important. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29654 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a -code-only option which restricts llvmdo to visiting just thoseReid Spencer2006-08-131-80/+116
| | | | | | | files that are considered to be code. Documentation is excluded. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29652 91177308-0d34-0410-b5e6-96231b3b80d8
* Lexer.cpp is a generated file both in lib/AsmParser and projects/StackerReid Spencer2006-08-111-0/+1
| | | | | | | so we remove it from being counted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29641 91177308-0d34-0410-b5e6-96231b3b80d8
* Weed out some cruft and add in some missing extensions.Reid Spencer2006-08-111-18/+40
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29638 91177308-0d34-0410-b5e6-96231b3b80d8
* Make llvmdo and llvmgrep invulnerable to where they are run from by gettingReid Spencer2006-08-111-3/+10
| | | | | | | | | 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
* remove some stuffChris Lattner2006-04-201-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27903 91177308-0d34-0410-b5e6-96231b3b80d8
* PPCPerfectShuffle.h is autogenerated, don't include it in the LOC counts.Chris Lattner2006-04-171-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27740 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow a sequence of digits at the end of the directory name when trying toReid Spencer2006-03-141-1/+1
| | | | | | | | | | | | | | | | 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
* Don't include generated lexer .cpp files.Chris Lattner2006-01-191-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25466 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused variable.Reid Spencer2004-10-081-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16844 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it so that positional parameters can have spaces in them.Reid Spencer2004-10-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16843 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix usage description typoMisha Brukman2004-10-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16831 91177308-0d34-0410-b5e6-96231b3b80d8
* Make these scripts work on SunOS too.Reid Spencer2004-10-071-1/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16805 91177308-0d34-0410-b5e6-96231b3b80d8
* Finish the documentation.Reid Spencer2004-09-201-9/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16444 91177308-0d34-0410-b5e6-96231b3b80d8
* Tighten up the specification of what counts as a code file. The previousReid Spencer2004-09-201-11/+60
| | | | | | | | | specification was too liberal in some areas and missing things in others. This specification is based on the actual extensions found in the source tree. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16443 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed to actually work correctly and be the basis for other tools byReid Spencer2004-09-201-9/+39
| | | | | | | | allowing the set of directories searched to be specified either by the LLVMDO_DIRS env var or by the -dirs "dirs..." command line option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16441 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
* A utility to run an arbitrary program on each of the LLVM source files.Reid Spencer2004-07-261-0/+31
This is like llvmgrep but instead of running grep, it runs the command given by the first argument. For example, to find the top ten files with the most lines in llvm, you could: utils/llvmdo wc -l | sort -nb | tail Or, to find any source files with the wrong permissions, you could: utils/llvmdo ls -l | grep -v rw-r--r-- Hopefully, you get the idea. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15246 91177308-0d34-0410-b5e6-96231b3b80d8