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".
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".