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

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 6 06:39:29 PDT 2026


================
@@ -576,6 +416,12 @@ Changes in existing checks
   positives on project headers that use the same name as a standard library
   header.
 
+- Improve :doc:`modernize-loop-convert
+  <clang-tidy/checks/modernize/loop-convert>` checks to insert a space when
+  replacing ``*it`` with the loop variable in expressions like ``delete*it``
+  , where the missing space would cause the keyword and the new variable to
----------------
zeyi2 wrote:

If I remember correctly, doc builder would add an extra space before `,`, so could we move it to the end of last line?

```suggestion
  where the missing space would cause the keyword and the new variable to
```

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


More information about the cfe-commits mailing list