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

Nico Weber nicolasweber at gmx.de
Thu Jun 18 14:09:24 PDT 2015


Author: nico
Date: Thu Jun 18 16:09:24 2015
New Revision: 240056

URL: http://llvm.org/viewvc/llvm-project?rev=240056&view=rev
Log:
Add -Winfinite-recursion to -Wmost (and -Wall), PR23789.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticGroups.td
    cfe/trunk/test/Sema/warn-unused-function.c

Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=240056&r1=240055&r2=240056&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Thu Jun 18 16:09:24 2015
@@ -598,6 +598,7 @@ def Most : DiagGroup<"most", [
     DeleteNonVirtualDtor,
     Format,
     Implicit,
+    InfiniteRecursion,
     MismatchedTags,
     MissingBraces,
     Move,

Modified: cfe/trunk/test/Sema/warn-unused-function.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-unused-function.c?rev=240056&r1=240055&r2=240056&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-unused-function.c (original)
+++ cfe/trunk/test/Sema/warn-unused-function.c Thu Jun 18 16:09:24 2015
@@ -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() {} 





More information about the cfe-commits mailing list