You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually expected behaviour. At mutation time, Dredd accepts a compilation database, specifying which compiler options - such as -D and -I options - should be used to process the source file. It processes the source file in the context of those options, and thus mutates for one particular set of preprocessor symbols.
You cannot later compile the mutated code with different preprocessor symbols.
Describe common reasons and possible workarounds for Dredd's mutated
source file to fail to compile or cause a build failure, including the
lack of a compilation database and multiple conflicting compilation
contexts in the database.
Related issue: #347.
Related issue: #201.
Steps To Reproduce:
After running DREDD on the above file(named
baz.c
), compiling withclang baz.c -DBAR
results in syntax error.The text was updated successfully, but these errors were encountered: