[PATCH] D43737: Improve -Winfinite-recursion

Richard Trieu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 27 21:39:59 PST 2018


rtrieu added a comment.

Can you explain the new algorithm for checking recursive calls?

>From the test, this code looks like what you are testing for, but it doesn't trigger the warning.

  void f() {
    while(true) {
      f();
    }
  } 


https://reviews.llvm.org/D43737





More information about the cfe-commits mailing list