[clang-tools-extra] [clang-tidy] Fix modernize-loop-convert by introducing space (PR #202015)

Daniil Dudkin via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 6 11:18:12 PDT 2026


================
@@ -698,11 +698,32 @@ void LoopConvertCheck::doConversion(
       std::string ReplaceText;
       SourceRange Range = Usage.Range;
       if (Usage.Expression) {
+        // Decide whether `ReplaceText` needs to be pre-appended with a space
----------------
unterumarmung wrote:

```suggestion
        // Decide whether `ReplaceText` needs to be prepended with a space
```

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


More information about the cfe-commits mailing list