[PATCH] D43737: Improve -Winfinite-recursion
Robert Widmann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 24 20:11:41 PST 2018
CodaFi created this revision.
CodaFi added a reviewer: rsmith.
Herald added a subscriber: cfe-commits.
Rewrites -Winfinite-recursion to remove the state dictionary and explore paths in loops - especially infinite loops. The new check now detects recursion in loop bodies dominated by a recursive call.
Repository:
rC Clang
https://reviews.llvm.org/D43737
Files:
lib/Sema/AnalysisBasedWarnings.cpp
test/SemaCXX/warn-infinite-recursion.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43737.135810.patch
Type: text/x-patch
Size: 3640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180225/9aa919be/attachment.bin>
More information about the cfe-commits
mailing list