See https://llvm.discourse.group/t/possible-bug-in-clang-rewriter-clang-rewritebuffer-and-or-clang-rewriterope/3970 for initial explanation of bug.
[clang][Rewriter] split test for replace after insert to be more understandable and also a fix to make the test correct
clang-format: please reformat the code