aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/warn-infinite-recursion.cpp
AgeCommit message (Collapse)AuthorFilesLines
2014-01-04Ignore qualified templated functions for -Winfinite-recursion. This treatsRichard Trieu1-0/+23
functions like Foo<5>::run() the same way as run<5>() for this warning. llvm-svn: 198470
2013-12-21Add -Winfinite-recursion to ClangRichard Trieu1-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