1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
= codequery(1)
:doctype: manpage
== Name
codequery - create codequery database
== Synopsis
*codequery*
== Example
. Change directory to the base folder of your source code like this:
cd ~/projects/myproject/src
. Create a cscope.files file with all the source files listed in it (Use java as
example here).
find . -iname "*.java" > ./cscope.files
. Create a cscope database like this:
cscope -cbR
. Create a ctags database like this:
ctags --fields=+i -n -R -L ./cscope.files
. Run cqmakedb to create a CodeQuery database out of the cscope and ctags
databases, like this:
cqmakedb -s ./myproject.db -c ./cscope.out -t ./tags -p
. Open myproject.db using the CodeQuery GUI tool by running the following. Wild
card search (`*` and `?`) supported if Exact Match is switched off. Or use
cqsearch, the CLI-version of CodeQuery (type `cqsearch -h` for more info).
codequery
== Copyright
Copyright 2013-2015 ruben2020 link:https://github.com/ruben2020/['https://github.com/ruben2020/']
Website: link:https://github.com/ruben2020/codequery['https://github.com/ruben2020/codequery']
== Author
This manual page was written by mailto:czchen@debian.org[ChangZhuo Chen
'<czchen@debian.org>'] for the *Debian GNU/Linux system* (but may be used by
others).
|