[clang] [clang-format] Do not update cursor pos if no includes replacement (PR #77456)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 26 04:11:36 PDT 2024


NorthBlue333 wrote:

Woops, sorry, I missed the update here.

I've done all your changes in a second commit just to be able to keep track of my previous changes; but I am actually not sure how your suggested modifications are any different from mine? Well, I admit it looks a bit better, but it works the same? Or am I missing something? You are just storing the old value of Cursor and resetting it when no changes, while I was doing it the other way around: storing the new value and updating it only if no changes.

https://github.com/llvm/llvm-project/pull/77456


More information about the cfe-commits mailing list