summaryrefslogtreecommitdiffstats
path: root/llvm/utils/countloc.sh
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* remove attributions from utils.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45419
* Make all tools that use llvmdo have a -topdir option that allows the topReid Spencer2006-08-141-5/+14
| | | | | | | | | | | 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. llvm-svn: 29663
* Use the new -code-only option to llvmdo so that we only count things thatReid Spencer2006-08-131-1/+1
| | | | | | | are considered to be code. This will give a drop in the LOC count on the nightly testers, but it is more accurate than previous estimates. llvm-svn: 29653
* Make this script not care where it is run from by getting the llvm srcReid Spencer2006-08-111-1/+1
| | | | | | root from the llvm-config script. llvm-svn: 29632
* Documentation upgrade.Reid Spencer2004-09-201-2/+6
| | | | llvm-svn: 16445
* Base the implementation on the llvmdo script so that we only have toReid Spencer2004-09-201-14/+2
| | | | | | maintain the logic for "what counts as a source file" in one place. llvm-svn: 16442
* Don't count .lo files :)Chris Lattner2004-09-201-0/+1
| | | | llvm-svn: 16439
* Added a tool to more accurately count the lines of code. The previousReid Spencer2004-09-061-0/+38
utility, getsrcs.sh suffered from two problems: (1) it generated command lines too long for some platforms and (2) it searched the projects diretory which now contains the llvm-test module (in nightly tester) but we don't want to include the test code in our LOC calculation. This script should be maintained as LLVM adds new top level directories that contain source code. llvm-svn: 16199
OpenPOWER on IntegriCloud