Input validation/document restriction on file names
It seems that the tool only works as expected when filenames end with .c
and .cc
(that's the two I tested). Instead of printing an obscure message like the one below, there should be a comment to the effect of reminding the user that he maybe didn't have one of the supported file-types on the command line. The documentation should also be updated to not just use source0
in the --help
output.
~/git/clang-instrumentation/build/clang-instrumentation /tmp/a.cppE
Error while trying to load a compilation database:
Could not auto-detect compilation database for file "/tmp/a.cppE"
No compilation database found in /tmp or any parent directory
fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.
No Instrumentation information found. See clang-instrumentation -help.