aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/using-directive.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-11-10Diagnose attempst to template using declarations and using directives.John McCall1-0/+7
Recover from the latter and fail early for the former. Fixes PR8022. llvm-svn: 118669
2010-06-29Allow a using directive to refer to the implicitly-defined namespaceDouglas Gregor1-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
2009-12-15Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar1-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
2009-12-08When performing unqualified name lookup in C++, don't look directlyDouglas Gregor1-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
2009-11-23Let using directives refer to namespace aliases. Fixes PR5479.Sebastian Redl1-0/+10
llvm-svn: 89657
2009-11-18Resolve this FIXME: unelaborated lookups are ambiguous, too.John McCall1-5/+3
llvm-svn: 89266
2009-11-18Overhaul previous-declaration and overload checking to work on lookup resultsJohn McCall1-3/+1
rather than NamedDecl*. This is a major step towards eliminating OverloadedFunctionDecl. llvm-svn: 89263
2009-06-20Parsing and AST support for using declarations, from John Thompson!Douglas Gregor1-1/+1
llvm-svn: 73812
2009-04-13Make the selection of type declarations in Sema::getTypeNameDouglas Gregor1-5/+2
deterministic when faced with an ambiguity. This eliminates the annoying test/SemaCXX/using-directive.cpp failure. llvm-svn: 68952
2009-04-07XFAIL a failing testDouglas Gregor1-0/+1
llvm-svn: 68519
2009-04-01Make parsing a semantic analysis a little more robust following SemaDouglas Gregor1-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
2009-03-24Rename clang to clang-cc.Daniel Dunbar1-1/+1
Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
2009-02-08Make the test cases failing due to exact diagnostic matching XFAIL.Sebastian Redl1-0/+2
llvm-svn: 64080
2009-02-05Improvements and fixes for name lookup with using directives, from Piotr Rak!Douglas Gregor1-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
2009-02-03Remove a fixed FIXMEDouglas Gregor1-1/+0
llvm-svn: 63648
2009-02-03When looking for a tag name via unqualified name lookup, only look inDouglas Gregor1-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
2009-02-03Semantic analysis, ASTs, and unqualified name lookup support for C++Douglas Gregor1-0/+74
using directives, from Piotr Rak! llvm-svn: 63646