Aaron Ballman
|
6c93b3e29c
|
Adding a -Wunused-value warning for expressions with side effects used in an unevaluated expression context, such as sizeof(), or decltype(). Also adds a similar warning when the expression passed to typeid() *is* evaluated, since it is equally likely that the user would expect the expression operand to be unevaluated in that case.
llvm-svn: 224465
|
2014-12-17 21:57:17 +00:00 |
Eli Friedman
|
5a8738ffe0
|
Fix regression from r184810.
Specifically, CallExpr::getCalleeDecl() can return null, so make sure to
handle that correctly.
llvm-svn: 184813
|
2013-06-25 01:55:41 +00:00 |
Eli Friedman
|
0423b76be1
|
Fix noexcept for delete expressions.
Using "delete" on a pointer to an incomplete type can't throw.
While I'm here, clean up the signature of the canCalleeThrow() helper.
llvm-svn: 184810
|
2013-06-25 01:24:22 +00:00 |
Andy Gibbs
|
c6e68daac0
|
Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive.
llvm-svn: 166280
|
2012-10-19 12:44:48 +00:00 |
Richard Smith
|
9ca5c42582
|
Update all tests other than Driver/std.cpp to use -std=c++11 rather than
-std=c++0x. Patch by Ahmed Charles!
llvm-svn: 141900
|
2011-10-13 22:29:44 +00:00 |
Eli Friedman
|
622e4fcac6
|
PR9899: handle pseudo-destructors correctly in noexcept() expressions.
llvm-svn: 131220
|
2011-05-12 02:11:32 +00:00 |
Eli Friedman
|
c6587cc550
|
PR9882: Fix noexcept to deal with dependent new, delete, calls, and
dynamic_cast correctly.
llvm-svn: 131177
|
2011-05-11 05:22:44 +00:00 |
Sebastian Redl
|
52ddca23a7
|
Extend the noexcept expression test to test noexcept specification functions.
llvm-svn: 127693
|
2011-03-15 20:45:42 +00:00 |
Anders Carlsson
|
6774b1f1c1
|
Add -fcxx-exceptions to all tests that use C++ exceptions.
llvm-svn: 126599
|
2011-02-28 00:40:07 +00:00 |
Anders Carlsson
|
479d6f51e3
|
Pass -fexceptions to all tests that use try/catch/throw.
llvm-svn: 126037
|
2011-02-19 19:23:03 +00:00 |
Sebastian Redl
|
a8bac37bb1
|
Test destructors in delete expressions and of temporaries for throwing.
llvm-svn: 113664
|
2010-09-10 23:27:10 +00:00 |
Sebastian Redl
|
b8a76c42b5
|
Address Doug's comments.
llvm-svn: 113650
|
2010-09-10 22:34:40 +00:00 |
Sebastian Redl
|
4fa4a6b85e
|
Add another small test case.
llvm-svn: 113628
|
2010-09-10 21:03:58 +00:00 |
Sebastian Redl
|
dbd14bdefc
|
Tests for noexcept in templates.
llvm-svn: 113625
|
2010-09-10 20:55:50 +00:00 |
Sebastian Redl
|
5f0180d815
|
First version of a testcase, plus fixes.
llvm-svn: 113624
|
2010-09-10 20:55:47 +00:00 |