[PATCH] D40937: [clang-tidy] Infinite loop checker

Peter Szecsi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 5 05:28:23 PDT 2018


szepet added inline comments.


================
Comment at: clang-tidy/misc/InfiniteLoopCheck.cpp:121
+
+  Stmt *FunctionBody = nullptr;
+  if (ContainingLambda)
----------------
xazax.hun wrote:
> This could be pointer to const, right?
Since the createSequence uses it as a parameter for buildCFG which expects a Stmt*, I believe this is fine. (Or I could const cast is away on the call)


https://reviews.llvm.org/D40937





More information about the cfe-commits mailing list