Charles Li
e7cbb3ed4f
[Lit Test] Updated 34 Lit tests to be C++11 compatible.
...
Added expected diagnostics new to C++11.
Expanded RUN line to: default, C++98/03 and C++11.
llvm-svn: 253371
2015-11-17 20:25:05 +00:00
Aaron Ballman
9ef622e5bf
The exception-declaration for a function-try-block cannot redeclare a
...
function parameter. One of our existing test cases was XFAILed because
of this. This fixes the issue and un-XFAILs the test.
llvm-svn: 210026
2014-06-02 13:10:07 +00:00
Richard Smith
3876cc88ac
PR17731: When determining whether a tag and a non-tag were declared in the same
...
scope, be careful about function-scope declarations (which are not declared in
their semantic context).
llvm-svn: 193671
2013-10-30 01:02:04 +00:00
David Blaikie
1d6178065c
Fix more try scoping bugs introduced by r167650.
...
Introduces more clear scoping flags & flag combinations which should hopefully
be more understandable.
llvm-svn: 167766
2012-11-12 22:25:41 +00:00
David Blaikie
43df4cc568
Handle redeclarations of catch variables in catch blocks.
...
Fix to regression caused by r167650, caught by Richard Smith in code review.
llvm-svn: 167653
2012-11-10 01:38:24 +00:00
David Blaikie
1c9c90495d
PR14296: function parameter name collisions in function try/catch
...
C++11 3.3.3/2 "A parameter name shall not be redeclared in the outermost block
of the function definition nor in the outermost block of any handler associated
with a function-try-block."
It's not totally clear to me whether the "FIXME" case is covered by this, but
Richard Smith thinks it probably should be. It's just a bit more involved to
fix that case.
llvm-svn: 167650
2012-11-10 01:04:23 +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
Richard Smith
dda56e4b4a
Support for C++11 (non-template) alias declarations.
...
llvm-svn: 129567
2011-04-15 14:24:37 +00:00
Richard Smith
02e85f3bc5
Add support for C++0x's range-based for loops, as specified by the C++11 draft standard (N3291).
...
llvm-svn: 129541
2011-04-14 22:09:26 +00:00
Douglas Gregor
e63d087bcb
C++ [basic.scope.hiding] allows an ordinary name to hide a non-tag
...
name *in the same scope*, but not across scopes. Implement the
highlighted condition.
llvm-svn: 117212
2010-10-23 16:06:17 +00:00
Douglas Gregor
a343430e00
Add test case that I forgot to commit with r107354 (the implementation
...
of C++ DR481).
llvm-svn: 107359
2010-07-01 00:21:50 +00:00