651f13cea278ec967336033dd032faef0e9fc2ec |
|
24-Apr-2014 |
Stephen Hines <srhines@google.com> |
Updated to Clang 3.5a. Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
/external/clang/test/Sema/return.c
|
7a92c8957df49250fbc6e02e76b18aac8ae1ecf1 |
|
16-Apr-2013 |
Jyotsna Verma <jverma@codeaurora.org> |
Remove setjmp.h header file from Sema/return.c test and include necessary declarations explicitly in the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179604 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
9adcf1c96cb18c99ff62aedb1aa41da3966d17b9 |
|
11-Apr-2013 |
Jyotsna Verma <jverma@codeaurora.org> |
Exclude test30 of Sema/return.c for Hexagon since setjmp.h include file is unavailable for Hexagon. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179310 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
eb82a53aaa7880b7d3fd733aeee38b9aeee919ba |
|
28-Mar-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
For -Wignored-qualifiers, don't warn on qualifiers which we acquire via a typedef. Also don't warn on the _Atomic type specifier, just on the _Atomic type qualifier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178218 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
b778305e95f9977e6710f2b04830ecc36398ab5e |
|
22-Mar-2012 |
Richard Trieu <rtrieu@google.com> |
Change the binary operator data recursive evaluator to not stop at the first non-constant value encountered. This allows the evaluator to deduce that expressions like (x < 5 || true) is equal to true. Previously, it would visit x and determined that the entire expression is could not evaluated to a constant. This fixes PR12318. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153226 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
7a0a31ce0cd38147bfe853f71a3f7261444ddf4c |
|
03-Feb-2012 |
Chad Rosier <mcrosier@apple.com> |
[frontend] Don't allow a mapping to a warning override an error/fatal mapping. rdar://10736625 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149662 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
d067c07c6cbf099b25aba38bcb66f38e79d0c420 |
|
23-Feb-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Fix the behavior of -Wignored-qualifiers on return type qualifiers in several ways. We now warn for more of the return types, and correctly locate the ignored ones. Also adds fix-it hints to remove the ignored qualifiers. Fixes much of PR9058, although not all of it. Patch by Hans Wennborg, a couple of minor style tweaks from me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
eada35c933d8560a5d87741438a610d13d6e11d3 |
|
19-Oct-2010 |
NAKAMURA Takumi <geek4civic@gmail.com> |
test/Sema/return.c: Cygwin does not have _longjmp(). Although Cygwin-1.7 has _longjmp(), it would not be essential for this to distinguish Cygwin's version with <cygwin/version.h>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116783 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
90b828aa279542559f655d1af666580288cb1841 |
|
09-Sep-2010 |
Ted Kremenek <kremenek@apple.com> |
Enhance -Wreturn-type to not warn when control-flow is most likely limited by a switch statement explicitly covering all the cases for an enum value. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113450 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
5d1d7ae120c2c8e6cba5d2a712b33500a5aecc10 |
|
03-Sep-2010 |
Anders Carlsson <andersca@mac.com> |
Get rid of the "functions declared 'noreturn' should have a 'void' result type" warning. The rationale behind this is that it is normal for callback functions to have a non-void return type and it should still be possible to mark them noreturn. (JavaScriptCore is a good example of this). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112918 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
58f281f7d54976f23ed4fa23a10ff1ab9c7037fe |
|
19-Aug-2010 |
Ted Kremenek <kremenek@apple.com> |
Add warning for functions/blocks that have attribute 'noreturn' but return a non-void result. (<rdar://problem/7562925>) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111492 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
5495f37302f7c82192dab1ce8d9c9fe76ed0ee37 |
|
14-Jul-2010 |
Chandler Carruth <chandlerc@gmail.com> |
Wire up '-Wignored-qualifiers' to the warning on 'const' in 'const int f()'. This flag and warning match GCC semantics. Also, move it to -Wextra as this is a largely cosmetic issue and doesn't seem to mask problems. Subsequent fixes to the tests which no longer by default emit the warning. Added explicit test cases for both C and C++ behavior with the warning turned on. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108325 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
184aa4e6ded190bfb3bbe207040467f8d7e28a04 |
|
12-Jul-2010 |
Chris Lattner <sabre@nondot.org> |
fix PR7280 by making the warning on code like this: int test1() { return; } default to an error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108108 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
a8b48e4b68605297e6a426531993a4d4eeaff094 |
|
08-Apr-2010 |
Ted Kremenek <kremenek@apple.com> |
Update test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
c263704cb007eb95b79f37b12a8092c47146d452 |
|
23-Mar-2010 |
Ted Kremenek <kremenek@apple.com> |
For forward-declared static inline functions, delay CFG-based warnings until we encounter a definition. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99243 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
d064fdc4b7b64ca55b40b70490c79d6f569df78e |
|
23-Mar-2010 |
Ted Kremenek <kremenek@apple.com> |
Only perform CFG-based warnings on 'static inline' functions that are called (transitively) by regular functions/blocks within a translation untion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99233 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
0faede6f31b07bcec7b776f2b420c3ea9bb3e58c |
|
12-Mar-2010 |
John McCall <rjmccall@apple.com> |
Improve the unused-value check to look into comma expressions and filter out voids in sub-expressions. Patch by Mike M! Fixes PR4806. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98335 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
46171917dc87caf0c7a741a7301f36db2e20b132 |
|
23-Jan-2010 |
Mike Stump <mrs@apple.com> |
Insulate these from changes to the default for -Wunreachable-code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94326 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
29da559b62d229f067a5b1851e438561dcbfd9bd |
|
17-Dec-2009 |
Mike Stump <mrs@apple.com> |
Revert r91073. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91629 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
80737ad5e0a67d6e3dd0a0ba48446344215a5fd5 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang instead of 'clang', and forcibly disable use of ' clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
c9875bfa6ffecc8d8316820e2970cf7354f610d2 |
|
10-Dec-2009 |
Mike Stump <mrs@apple.com> |
Don't complain about falling off the end of a function with an asm block, if the function is supposed to return a value as we don't know exactly what the asm code does. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91073 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
8ee15dc2e2a9573b2852326650813111d7647909 |
|
17-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Use clang to run tests which include headers from the system. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89085 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
addb0f69580cd4ae7c61219e126e68ec6aa3c234 |
|
29-Oct-2009 |
John Thompson <John.Thompson.JTSoftware@gmail.com> |
Fix some Window-isms to get these tests to pass on Windows. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85450 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
87e5732f3307c838fff6adea8ba50147110fe092 |
|
29-Jul-2009 |
Mike Stump <mrs@apple.com> |
Be sure to turn on -fblocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77406 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
4d9d51ae3b868268082f94d84d0dff4c0b1ad435 |
|
29-Jul-2009 |
Mike Stump <mrs@apple.com> |
Add support for -Wmissing-noreturn. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77391 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
e24aea225ec87b935ede6c21c964dd47a4afb810 |
|
28-Jul-2009 |
Mike Stump <mrs@apple.com> |
Ensure we can work through typedefs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77265 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
773db1d4b5974a1849d0214900f5006f98adea5b |
|
27-Jul-2009 |
Mike Stump <mrs@apple.com> |
Add knowledge about _longjmp being noreturn. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
fd350b5b4ae557d6b74899b945e77508f33149a9 |
|
27-Jul-2009 |
Mike Stump <mrs@apple.com> |
Add builtin knowledge about longjmp being noreturn. Add printing for the noreturn attribute. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77253 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
0feecbb3165b06ff34663a8c233316aaf7f84ce1 |
|
27-Jul-2009 |
Mike Stump <mrs@apple.com> |
Add noreturn for exit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77237 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
22bfc7bce3de6da854b6374c6f14e12121315919 |
|
27-Jul-2009 |
Chris Lattner <sabre@nondot.org> |
add bugzilla # git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77183 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
2d3c191e1d5545e1724ee6e0550c70eef54beff2 |
|
27-Jul-2009 |
Mike Stump <mrs@apple.com> |
Fix PR4624. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77176 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
2455636163fdd18581d7fdae816433f886d88213 |
|
25-Jul-2009 |
Mike Stump <mrs@apple.com> |
Add noreturn as a type attribute, handle printing for them and handle calls to noreturn function pointers when CFG building. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77089 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
b1682c50d26e0f12130d35b7b9b77d40542c4540 |
|
23-Jul-2009 |
Mike Stump <mrs@apple.com> |
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
/external/clang/test/Sema/return.c
|
940ab971c580ca03da2e68ec92b9c0f7acfe6988 |
|
30-Apr-2009 |
Steve Naroff <snaroff@apple.com> |
Name the "return-type" DiagGroup and reference it in a few places. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70500 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|
2c0ccd045514ae4dc951fb45b7c29216ba109bf7 |
|
30-Apr-2009 |
Steve Naroff <snaroff@apple.com> |
Warn about invalid return statements by default. This fixes <rdar://problem/6839489> 10A345: Clang does not warm about mismatched returns (void return from a bool function) Will implement -Wreturn-type, -Wno-return-type in another commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70492 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/return.c
|