bdc49d360f98c1194d50b8bbb24885bf8d4c1ac4 |
|
02-Mar-2011 |
John McCall <rjmccall@apple.com> |
Pretty up the wrong-number-of-arguments-for-attribute diagnostic by using a custom plural form. Split out the range diagnostics as their own message. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126840 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.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/attr-noreturn.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/attr-noreturn.c
|
b1f1b267351be74013f966f4834cde1eddbe0233 |
|
30-Apr-2010 |
Abramo Bagnara <abramo.bagnara@gmail.com> |
Attribute noreturn is now put in declaration attributes. Fixed a double warning generation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102705 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
04a67a6aa3dfdc92d57f7f8d93ba397348c868a4 |
|
05-Feb-2010 |
John McCall <rjmccall@apple.com> |
Standardize the parsing of function type attributes in a way that follows (as conservatively as possible) gcc's current behavior: attributes written on return types that don't apply there are applied to the function instead, etc. Only parse CC attributes as type attributes, not as decl attributes; don't accepet noreturn as a decl attribute on ValueDecls, either (it still needs to apply to other decls, like blocks). Consistently consume CC/noreturn information throughout codegen; enforce this by removing their default values in CodeGenTypes::getFunctionInfo(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95436 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
e030358cc06e1cbce3c2e00ca67c946f9164b2a8 |
|
09-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
add a bunch of missing prototypes to tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93072 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
a5728872c7702ddd09537c95bc3cbd20e1f2fb09 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
edd722e38b883236c9f214d5df309110500b3529 |
|
15-Dec-2009 |
Mike Stump <mrs@apple.com> |
Add testcase for recent checkin. Patch by Chip Davis. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91436 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
9dc9c376a9f3e0c72f33e27075caa0647dadb350 |
|
21-Oct-2009 |
Douglas Gregor <dgregor@apple.com> |
Downgrade "function declared 'noreturn' should not return" from an error (by default) to a warning, per C++0x [dcl.attr.noreturn]. Patch from Sean Hunt! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84762 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
29813c3509a0229947e35897a9a145c4fb3bc147 |
|
16-Sep-2009 |
Mike Stump <mrs@apple.com> |
Some people don't want to fix their broken code just yet, so turn off hard error for falling off a noreturn function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81971 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
47259d9ca7840dd66f06f5f11da7768b23d1e0fd |
|
05-Aug-2009 |
Douglas Gregor <dgregor@apple.com> |
Fix canonical type construction for function types with the noreturn attribute. Fixes PR4865. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78224 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
5f28a1edf6decac64ca12e51ca4a929d26fc21f2 |
|
24-Jul-2009 |
Mike Stump <mrs@apple.com> |
Implement new warning for functions declared 'noreturn' when they fall off the end. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76932 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
8662587fa75d3fb04f873e265841c9314c7f5523 |
|
31-May-2009 |
Chris Lattner <sabre@nondot.org> |
Downgrade an error about "return in a no-return function" from being an error to being a warning that defaults to error. If you want this to be a warning, you have to explicitly pass -Winvalid-noreturn to clang to map it back to a warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72669 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
f7c41dab1a8de29b0991e853b8822bb0d1ddc01c |
|
29-Apr-2009 |
Mike Stump <mrs@apple.com> |
Implement sema checking for noreturn. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70353 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|
d3f2c10f881311831a84114179342ff4db55e0c3 |
|
19-Oct-2008 |
Daniel Dunbar <daniel@zuster.org> |
Improve attribute parsing & tests. - Support noreturn on function-typed variables. - Extend isFunctionOrMethod to return true for K&R functions and provide hasFunctionProto to check if a decl has information about its arguments. This code needs some serious cleaning, but works. - Add/improve test cases for noreturn and unused. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57778 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-noreturn.c
|