summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/namespace-alias.cpp
Commit message (Collapse)AuthorAgeFilesLines
* When a namespace alias redeclares a using declaration, point the diagnostic atRichard Smith2015-12-291-0/+11
| | | | | | the using declaration not at the thing it's using. llvm-svn: 256602
* Model NamespaceAliasDecls as having their nominated namespace as an underlyingRichard Smith2015-12-291-0/+24
| | | | | | | | | | | | | declaration. This fixes an issue where we would reject (due to a claimed ambiguity) a case where lookup finds multiple NamespaceAliasDecls from different scopes that nominate the same namespace. The C++ standard doesn't make it clear that such a case is in fact valid (which I'm working on fixing), but there are no relevant rules that distinguish using declarations and namespace alias declarations here, so it makes sense to treat them the same way. llvm-svn: 256601
* PR25731: namespace alias declarations can appear at block scope; ensure that weRichard Smith2015-12-031-0/+8
| | | | | | | | | do scope-based lookup when looking for redeclarations of them. Add some related missing checks for the scope-based redeclaration lookup: properly filter the list of found declarations to match the scope, and diagnose shadowing of a template parameter name. llvm-svn: 254663
* [modules] Make NamespaceAliasDecl redeclarable, as it should be. This fixesRichard Smith2014-09-031-3/+3
| | | | | | | merging of namespace aliases across modules and improves source fidelity. Incidentally also fixes PR20816. llvm-svn: 217103
* Point the caret at the error for the 'expected namespace name' diagnostic inRichard Smith2012-04-051-2/+6
| | | | | | a namespace alias declaration. llvm-svn: 154138
* add PCH support for a bunch of C++ Decls, patch byChris Lattner2010-05-071-0/+20
| | | | | | Andrew Sutton! llvm-svn: 103301
* When declaring a namespace alias, ignore previous declarations thatDouglas Gregor2010-05-031-0/+10
| | | | | | aren't in scope. Fixes PR7014. llvm-svn: 102915
* Compare namespaces properly when looking for redeclarations ofDouglas Gregor2010-03-261-1/+9
| | | | | | namespace aliases. Fixes PR6341. llvm-svn: 99664
* Support local namespace aliases and permit them to be instantiated.John McCall2010-02-161-0/+21
| | | | llvm-svn: 96335
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - 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). llvm-svn: 91446
* Check in test for namespace aliases+using directives.Anders Carlsson2009-03-311-0/+14
| | | | llvm-svn: 68086
* More improvements to namespace aliases. We now support everything except ↵Anders Carlsson2009-03-281-0/+23
| | | | | | aliases in using directives. llvm-svn: 67966
* Fix lookup bugAnders Carlsson2009-03-281-0/+4
| | | | llvm-svn: 67964
* As Eli pointed out, it is possible that a namespace lookup is ambiguous!Anders Carlsson2009-03-281-0/+7
| | | | llvm-svn: 67932
* Check that the alias points to a valid namespace.Anders Carlsson2009-03-281-0/+5
| | | | llvm-svn: 67925
* Check that the namespace alias doesn't conflict with a previous declaration ↵Anders Carlsson2009-03-281-0/+11
in this scope. llvm-svn: 67921
OpenPOWER on IntegriCloud