summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def
Commit message (Collapse)AuthorAgeFilesLines
* Fix bogus "inline namespace cannot be reopened as non-inline" diagnostic toRichard Smith2016-09-301-2/+7
| | | | | | | just warn that the second declaration is missing the 'inline' keyword. This is valid, and we shouldn't be suggesting otherwise. llvm-svn: 282981
* Allow typo correction to try removing nested name specifiers.Kaelyn Uhrain2013-07-021-2/+2
| | | | | | | | | | | | | | | | | The removal is tried by retrying the failed lookup of a correction candidate with either the MemberContext or SS (CXXScopeSpecifier) or both set to NULL if they weren't already. If the candidate identifier is then looked up successfully, make a note in the candidate that the SourceRange should include any existing nested name specifier even if the candidate isn't adding a different one (i.e. the candidate has a NULL NestedNameSpecifier). Also tweak the diagnostic messages to differentiate between a suggestion that just replaces the identifer but leaves the existing nested name specifier intact and one that replaces the entire qualified identifier, in cases where the suggested replacement is unqualified. llvm-svn: 185487
* Add the global namespace (the "::" namespace specifier) to the list ofKaelyn Uhrain2013-06-241-2/+2
| | | | | | namespaces to try for potential typo corrections. llvm-svn: 184762
* Don't look outside the innermost enclosing namespace whenJohn McCall2013-03-201-0/+101
| | | | | | | | performing unqualified lookup for a friend class declaration. rdar://13393749 llvm-svn: 177473
* 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
* Egriegious hack to support libstdc++4.6's broken <atomic> header, which definesRichard Smith2012-10-041-2/+2
| | | | | | | | a non-inline namespace, then reopens it as inline to try to add its symbols to the surrounding namespace. In this one special case, permit the namespace to be reopened as inline, and patch up the name lookup tables to match. llvm-svn: 165263
* 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
* Downgrade the error about re-opening an inline namespace as non-inlineDouglas Gregor2011-05-201-1/+1
| | | | | | | to a warning, since apparently libstdc++'s debug mode does this (and we can recover safely). Add a Fix-It to insert the "inline", just for kicks. llvm-svn: 131732
* Support explicit template specialization and instantiation for membersDouglas Gregor2011-03-071-0/+21
| | | | | | | | | | | of a C++0x inline namespace within enclosing namespaces, as noted in C++0x [namespace.def]p8. Fixes <rdar://problem/9006349>, a libc++ failure where Clang was rejected an explicit specialization of std::swap (since libc++ puts it into an inline, versioned namespace std::__1). llvm-svn: 127162
* When performing name lookup for a namespace definition, only look intoDouglas Gregor2010-10-221-0/+24
| | | | | | | the current context's redeclaration context, ignoring using directives. Fixes PR8430. llvm-svn: 117097
* template-ids are looked up differently in friend declarations.John McCall2010-10-141-1/+26
| | | | llvm-svn: 116529
* Make inline namespace not be transparent after all. The concept simply ↵Sebastian Redl2010-08-311-0/+23
| | | | | | doesn't fit. Instead, special-case the few places where transparent contexts have the desired behavior for inline namespaces. Fixes a redeclaration issue in inline namespaces. llvm-svn: 112637
* Enable inline namespaces in C++03 as an extension.Sebastian Redl2010-08-311-4/+6
| | | | llvm-svn: 112566
* Add a forgotten place where the enclosing namespace set matters, plus a big ↵Sebastian Redl2010-08-311-0/+74
| | | | | | testcase for inline namespace fun. llvm-svn: 112565
* Enable inline namespaces in the AST.Sebastian Redl2010-08-311-0/+13
| | | | llvm-svn: 112564
* Parser support for inline namespacesSebastian Redl2010-08-271-0/+7
| | | | llvm-svn: 112320
* C++ [namespace.memdef]p3 only applies when the friend is not named viaDouglas Gregor2010-04-181-0/+12
| | | | | | | | | a qualified name. We weren't checking for an empty nested-name-specifier when dealing with friend class templates (although we were checking in the other places where we deal with this paragraph). Fixes a Boost.Serialization showstopper. llvm-svn: 101724
* Fix a really trivial crasher and begin fleshing out one of the namespace testChandler Carruth2010-02-251-1/+42
| | | | | | cases. llvm-svn: 97134
* Successive anonymous namespaces name the same scope. I misinterpreted theJohn McCall2009-12-161-1/+19
| | | | | | standard the last time. Fixes PR5766. llvm-svn: 91493
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-152-2/+2
| | | | | | | | | - 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
* Fix unqualified lookup through using directives.John McCall2009-11-101-0/+24
| | | | | | This is a pretty minimal test case; I'll make a better one later. llvm-svn: 86669
* Fix name lookup for friend class templates to consider anything in aDouglas Gregor2009-09-261-0/+15
scope *up to and including* the innermost namespace scope, rather than just searching in the innermost namespace scope. llvm-svn: 82849
OpenPOWER on IntegriCloud