summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/basic/basic.scope
Commit message (Collapse)AuthorAgeFilesLines
* [c++2a] Improve diagnostic for use of declaration from another TU'sRichard Smith2019-04-181-0/+86
| | | | | | | | | | global module fragment. We know that the declaration in question should have been introduced by a '#include', so try to figure out which one and suggest it. Don't suggest importing the global module fragment itself! llvm-svn: 358631
* Add IDNS_Tag to C++ declarations that conflict with tag declarations.Richard Smith2017-09-071-0/+19
| | | | | | | Fixes some accepts-invalids with tags and other declarations declared in the same scope. llvm-svn: 312743
* [Lit Test] Updated 34 Lit tests to be C++11 compatible.Charles Li2015-11-171-2/+10
| | | | | | | Added expected diagnostics new to C++11. Expanded RUN line to: default, C++98/03 and C++11. llvm-svn: 253371
* The exception-declaration for a function-try-block cannot redeclare aAaron Ballman2014-06-021-2/+8
| | | | | | | 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
* PR17731: When determining whether a tag and a non-tag were declared in the sameRichard Smith2013-10-301-0/+45
| | | | | | | scope, be careful about function-scope declarations (which are not declared in their semantic context). llvm-svn: 193671
* Fix more try scoping bugs introduced by r167650.David Blaikie2012-11-121-0/+23
| | | | | | | Introduces more clear scoping flags & flag combinations which should hopefully be more understandable. llvm-svn: 167766
* Handle redeclarations of catch variables in catch blocks.David Blaikie2012-11-101-0/+12
| | | | | | Fix to regression caused by r167650, caught by Richard Smith in code review. llvm-svn: 167653
* PR14296: function parameter name collisions in function try/catchDavid Blaikie2012-11-101-0/+25
| | | | | | | | | | | | 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
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-191-0/+1
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-132-2/+2
| | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
* Support for C++11 (non-template) alias declarations.Richard Smith2011-04-151-0/+26
| | | | llvm-svn: 129567
* Add support for C++0x's range-based for loops, as specified by the C++11 ↵Richard Smith2011-04-141-0/+68
| | | | | | draft standard (N3291). llvm-svn: 129541
* C++ [basic.scope.hiding] allows an ordinary name to hide a non-tagDouglas Gregor2010-10-231-0/+24
| | | | | | | name *in the same scope*, but not across scopes. Implement the highlighted condition. llvm-svn: 117212
* Add test case that I forgot to commit with r107354 (the implementationDouglas Gregor2010-07-011-0/+18
of C++ DR481). llvm-svn: 107359
OpenPOWER on IntegriCloud