Skip to content

Add flag to check mutation sources against compile_commands.json #229

Open
@JamesLee-Jones

Description

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:

  • If compile_commands.json is passed and no .c or .cc files are passed to Dredd, then Dredd should mutate all files present in compile_commands.json.
  • If 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 in compile_commands.json.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions