[clang] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp (PR #143236)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 7 05:05:15 PDT 2025


================
@@ -284,27 +284,23 @@ static bool fillRanges(MemoryBuffer *Code,
     errs() << "error: number of -offset and -length arguments must match.\n";
----------------
HazardyKnusperkeks wrote:

Is it maybe worth handling the `Offsets.empty() && Lengths.empty()` case by its own, and then dropping the `if (I < Size)`?

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


More information about the cfe-commits mailing list