mc-imperial / dredd

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

dredd inject prelude just after `[[noreturn]]` #318

Closed JonathanFoo0523 closed 2 months ago

JonathanFoo0523 commented 2 months ago

Applying dredd to

[[noreturn]] static void foo() {
  int x = 42;
}

results in

[[noreturn]] #include <cinttypes>
.... DREDD_PRELUDE....
static void foo() {
  int x = __dredd_replace_expr_int_constant(42, 0);
}