[PATCH] Add new warning to Clang to detect when all code paths in a function has a call back to the function.

Richard Trieu rtrieu at google.com
Wed Nov 20 17:41:45 PST 2013


  Switch -Winfinite-recursion to DefaultIgnore, in line with the other CFG warnings.  This allows the other tests to be reverted.  Also made the suggested changes from Richard Smith.

http://llvm-reviews.chandlerc.com/D1864

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D1864?vs=5147&id=5691#toc

Files:
  test/SemaCXX/warn-infinite-recursion.cpp
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Basic/DiagnosticGroups.td
  lib/Sema/AnalysisBasedWarnings.cpp
  lib/Lex/Pragma.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1864.4.patch
Type: text/x-patch
Size: 8304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131120/d64edb11/attachment.bin>


More information about the cfe-commits mailing list