summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/using-directive.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Diagnose attempst to template using declarations and using directives.John McCall2010-11-101-0/+7
| | | | | | Recover from the latter and fail early for the former. Fixes PR8022. llvm-svn: 118669
* Allow a using directive to refer to the implicitly-defined namespaceDouglas Gregor2010-06-291-0/+5
| | | | | | | | "std", with a warning, to improve GCC compatibility. Fixes PR7517. As a drive-by, add typo correction for using directives. llvm-svn: 107172
* 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
* When performing unqualified name lookup in C++, don't look directlyDouglas Gregor2009-12-081-0/+9
| | | | | | | into transparent contexts; instead, we'll look into their nearest enclosing non-transparent contexts further up the stack. Fixes PR5479. llvm-svn: 90859
* Let using directives refer to namespace aliases. Fixes PR5479.Sebastian Redl2009-11-231-0/+10
| | | | llvm-svn: 89657
* Resolve this FIXME: unelaborated lookups are ambiguous, too.John McCall2009-11-181-5/+3
| | | | llvm-svn: 89266
* Overhaul previous-declaration and overload checking to work on lookup resultsJohn McCall2009-11-181-3/+1
| | | | | | | rather than NamedDecl*. This is a major step towards eliminating OverloadedFunctionDecl. llvm-svn: 89263
* Parsing and AST support for using declarations, from John Thompson!Douglas Gregor2009-06-201-1/+1
| | | | llvm-svn: 73812
* Make the selection of type declarations in Sema::getTypeNameDouglas Gregor2009-04-131-5/+2
| | | | | | | deterministic when faced with an ambiguity. This eliminates the annoying test/SemaCXX/using-directive.cpp failure. llvm-svn: 68952
* XFAIL a failing testDouglas Gregor2009-04-071-0/+1
| | | | llvm-svn: 68519
* Make parsing a semantic analysis a little more robust following SemaDouglas Gregor2009-04-011-7/+7
| | | | | | | | | | | | | | | | failures that involve malformed types, e.g., "typename X::foo" where "foo" isn't a type, or "std::vector<void>" that doens't instantiate properly. Similarly, be a bit smarter in our handling of ambiguities that occur in Sema::getTypeName, to eliminate duplicate error messages about ambiguous name lookup. This eliminates two XFAILs in test/SemaCXX, one of which was crying out to us, trying to tell us that we were producing repeated error messages. llvm-svn: 68251
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Make the test cases failing due to exact diagnostic matching XFAIL.Sebastian Redl2009-02-081-0/+2
| | | | llvm-svn: 64080
* Improvements and fixes for name lookup with using directives, from Piotr Rak!Douglas Gregor2009-02-051-1/+36
| | | | | | | | Also, put Objective-C protocols into their own identifier namespace. Otherwise, we find protocols when we don't want to in C++ (but not in C). llvm-svn: 63877
* Remove a fixed FIXMEDouglas Gregor2009-02-031-1/+0
| | | | llvm-svn: 63648
* When looking for a tag name via unqualified name lookup, only look inDouglas Gregor2009-02-031-2/+2
| | | | | | | scopes where the name would be considered a redeclaration if we know that we're declaring or defining that tag. llvm-svn: 63647
* Semantic analysis, ASTs, and unqualified name lookup support for C++Douglas Gregor2009-02-031-0/+74
using directives, from Piotr Rak! llvm-svn: 63646
OpenPOWER on IntegriCloud