[clang] [clang-format] Do not update cursor pos if no includes replacement (PR #77456)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 22 01:57:27 PST 2024
================
@@ -3123,6 +3123,7 @@ static void sortCppIncludes(const FormatStyle &Style,
}
std::string result;
+ unsigned NewCursor = UINT_MAX;
----------------
owenca wrote:
```suggestion
const auto OldCursor = Cursor ? *Cursor : 0;
```
https://github.com/llvm/llvm-project/pull/77456
More information about the cfe-commits
mailing list