FileFilter

Filter function for files. Either all or those in stdin.

The matching ignores the file extension in order to lessen the problem of a file that this approach skip headers because they do not exist in compile_commands.json. It means that e.g. "foo.hpp" would match true if foo.cpp is in compile_commands.json.

TODO: this may create problems for header only libraries because only the unittest would include the header which mean that for this to work the unittest would have to reside in the same directory as the header file. Which they normally never do. This then lead to a diff of a header only lib lead to "no files analyzed".

Constructors

this
this(AbsolutePath root, bool fromStdin, Diff diff)
Undocumented in source.

Members

Functions

shouldAnalyze
bool shouldAnalyze(AbsolutePath p)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

files
Set!string files;
Undocumented in source.
root
AbsolutePath root;
Undocumented in source.
useFileFilter
bool useFileFilter;
Undocumented in source.

Meta