[clang] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp (PR #143236)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 7 13:01:05 PDT 2025
================
@@ -284,27 +284,23 @@ static bool fillRanges(MemoryBuffer *Code,
errs() << "error: number of -offset and -length arguments must match.\n";
----------------
owenca wrote:
Actually, we can achieve that by handling `Offsets.size() == 1 && Lengths.empty()` separately.
https://github.com/llvm/llvm-project/pull/143236
More information about the cfe-commits
mailing list