[clang] [clang][OpenMP] Diagnose badly-formed collapsed imperfect loop nests (#60678) (PR #101305)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 31 07:36:22 PDT 2024


================
@@ -7668,6 +7669,47 @@ struct LoopIterationSpace final {
   Expr *FinalCondition = nullptr;
 };
 
+class ForSubExprChecker : public RecursiveASTVisitor<ForSubExprChecker> {
+  const llvm::SmallSet<Decl *, 4> *CollapsedLoopVarDecls;
+  VarDecl *ForbiddenVar;
----------------
alexey-bataev wrote:

`VarDecl *ForbiddenVar = nullptr;`

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


More information about the cfe-commits mailing list