user501138
user501138

Reputation: 899

adding cpp files to a cscope database

Do I really have to combine a recursive grep or find in conjunction with scope to add .cpp files to a cscope database ?

Is there a simple pattern matching argument that will work seamlessly with the existing -R argument to cscope ?

Thanks.

Upvotes: 1

Views: 1477

Answers (1)

Mekanik
Mekanik

Reputation: 2562

I have cscope: version 15.7a and it process my .cpp, .cc files as a source files in subdirectories with cscope -R. mlcscope in cygwin works the same way.

So we have obsolete information at Using Cscope on large projects:

by default Cscope only parses files with the .c, .h, .y, or .l extensions

In the newest sources of cscope I've found function static BOOL issrcfile(char *path) which has hardcoded set of extensions: c h l y C G H L bp qc qh sd cc hh tcc cpp cxx hpp hxx recognised as source code files.

Also manpage says nothing about regex or patterns for work with -R.

Upvotes: 2

Related Questions