aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CheckSecuritySyntaxOnly.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-07-22 23:56:57 +0000
committerMike Stump <mrs@apple.com>2009-07-22 23:56:57 +0000
commitb1682c50d26e0f12130d35b7b9b77d40542c4540 (patch)
treeed86f089a9ffe00991472e1c15cb78c8664e4680 /lib/Analysis/CheckSecuritySyntaxOnly.cpp
parent7cdbc5832084f45721693dfb1d93284c3e08efee (diff)
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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CheckSecuritySyntaxOnly.cpp')
0 files changed, 0 insertions, 0 deletions