Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ignore qualified templated functions for -Winfinite-recursion. This treats | Richard Trieu | 2014-01-04 | 1 | -0/+23 |
| | | | | | | functions like Foo<5>::run() the same way as run<5>() for this warning. llvm-svn: 198470 | ||||
* | Add -Winfinite-recursion to Clang | Richard Trieu | 2013-12-21 | 1 | -0/+129 |
This new warning detects when a function will recursively call itself on every code path though that function. This catches simple recursive cases such as: void foo() { foo(); } As well as more complex functions like: void bar() { if (test()) { bar(); return; } else { bar(); } return; } This warning uses the CFG. As with other CFG-based warnings, this is off by default. Due to false positives, this warning is also disabled for templated functions. llvm-svn: 197853 |