Go to file
Mike Stump 33979f75a0 Add warning for falling off the end of a function that should return a
value.  This is on by default, and controlled by -Wreturn-type (-Wmost
-Wall).  I believe there should be very few false positives, though
the most interesting case would be:

  int() { bar(); }

when bar does:

  bar() { while (1) ; }

Here, we assume functions return, unless they are marked with the
noreturn attribute.  I can envision a fixit note for functions that
never return normally that don't have a noreturn attribute to add a
noreturn attribute.

If anyone spots other false positives, let me know!

llvm-svn: 76821
2009-07-22 23:56:57 +00:00
clang Add warning for falling off the end of a function that should return a 2009-07-22 23:56:57 +00:00
compiler-rt improve portability to platforms that don't put python in /usr/bin. Patch by 2009-07-06 22:24:16 +00:00
llvm remove SectionFlags::Small: it is only used on Xcore, and we'll find 2009-07-22 23:27:22 +00:00