Category : automated-refactoring

I’ve been trying without success to create a regex that I can use to refactor a bunch of calls to 2 functions with a fixed, 6 argument signature like this: logger_4args_A(FlagsA|FlagsB,"This is %s message %d",someString(n*2)[4],some_Goofy->number.thing(),0,0); logger_4args_B(FlagsC, "No args passed here, only 0 defaults",0,0,0,0); into a variadic invocation of 2 new functions like this: newLogA(FlagsA|FlagsB,"This is ..

Read more