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

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 10 02:23:33 PDT 2026


================
@@ -552,6 +552,39 @@ static bool containerIsConst(const Expr *ContainerExpr, bool Dereference) {
   return false;
 }
 
+// Returns true if the token at `BeginLocation` is immediately preceded by an
+// identifier or keyword token with no space between them.
+static bool
+isPrecededByAdjacentIdentifierOrKeyword(SourceManager &SourceMgr,
----------------
vbvictor wrote:

if possible

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


More information about the cfe-commits mailing list