Subdirectories

Some directories in your tree may not contain information relevant to your project. In this case, it may be worth considering to prevent LXR from seeing them, so that analysis of your tree is not cluttered by service data (like VCS auxiliary directories, binary objects created by your integrated development environment, etc.)

You can do it very easily with the 'ignoredirs' configuration parameter.

, 'ignoredirs' => [ directories ]

In fact, you do not really list directories, but partial paths.

If any directory (considered surrounded by path separators , i.e. / under Linux) matches a subdirectory in the file path, the file path is discarded by LXR.

Example:

, 'ignoredirs' => [ 'CVSROOT', '.git' ]

Files

Similarly, some files intermixed with the real source files are not meaningful: compiler intermediate text-files (such as .moc files), "to do" reminders, binary output modules, etc.

These files can be discarded with the 'ignorefiles' configuration parameter.

, 'ignorefiles' => 'regexp'

The regular expression is applied on every file name in the directory. If it matches, the file is discarded.

Example:

LXR uses the following pattern to leave aside "invisible" files (the so-called "dot" files), editor backups, binary files and core dumps.

, 'ignorefiles' => '^\\.|~$|\\.(o|a|orig)$|^core$' Pay special attention to the double backslash (\) needed because of Perl's eval.
CAUTION!
Indiscriminate use of this parameter may cause total wipeout!

Notes: