Add -Winfinite-recursion to -Wmost (and -Wall), PR23789.

llvm-svn: 240056
This commit is contained in:
Nico Weber 2015-06-18 21:09:24 +00:00
parent fa38972063
commit 113c339d62
2 changed files with 2 additions and 1 deletions

View File

@ -598,6 +598,7 @@ def Most : DiagGroup<"most", [
DeleteNonVirtualDtor,
Format,
Implicit,
InfiniteRecursion,
MismatchedTags,
MissingBraces,
Move,

View File

@ -1,6 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -Wused-but-marked-unused -Wunused-function -Wunneeded-internal-declaration -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify -Wunused %s
// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
// RUN: %clang_cc1 -fsyntax-only -verify -Wall -Wno-infinite-recursion %s
void foo() {}
static void f2() {}