-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flag to check mutation sources against compile_commands.json #229
Comments
The documentation for |
If you empty |
Adding the following to main.cc prints the result of
Using the math example with only the
This seems to show that it is also inferred if a file is referenced by a |
After some experimenting with solutions, calling |
Due to the issues faced by this, I short term solution can be found here. This is a shell script that extracts files with user defined extensions from a compilation database file to be passed to Dredd. |
When mutating a project, Dredd takes in a
compile_commands.json
file as well as a list of files that should be mutated. This approach is okay for smaller projects but can be impractical for mutating large project. It is also not always suitable to include all .c or .cc files as some may only be used for OS specific features. This can lead to errors when mutating projects were this is the case.To solve this problem, a flag should be added to Dredd that works as follows:
compile_commands.json
is passed and no .c or .cc files are passed to Dredd, then Dredd should mutate all files present incompile_commands.json
.compile_commands.json
is passed and files are passed to Dredd, these files should be mutated as normal, but a warning should be given if one of the files passed is not present incompile_commands.json
.The text was updated successfully, but these errors were encountered: