mc-imperial / dredd

A mutation testing tool designed to work with large C++ (and C) codebases.
Apache License 2.0
11 stars 3 forks source link

Insert Dredd declarations at very start of file #199

Closed afd closed 10 months ago

afd commented 10 months ago

Rather than looking for the first declaration in the file and inserting Dredd declarations before that, declarations are now inserted at the very beginning of the source file being mutated. This means that they even precede preprocessor directives and comments. This fixes an issue where declarations were being placed at invalid positions in the presence of certain uses of preprocessor directives.

Fixes #198.