summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/using-decl-1.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make typo-correction of inheriting constructors work a bit better. LimitRichard Smith2014-05-011-7/+27
| | | | | | | correction to direct base class members, and recover properly after we apply such a correction. llvm-svn: 207731
* When typo-correcting a member using declaration, don't exclude member templates.Richard Smith2014-04-301-24/+35
| | | | llvm-svn: 207681
* When typo-correcting a member using-declaration, only consider members of ↵Richard Smith2014-04-301-7/+4
| | | | | | base classes. llvm-svn: 207680
* Fix crash if typo correction corrects a member using-declaration to aRichard Smith2014-04-301-0/+33
| | | | | | non-member declaration. Patch by Dinesh Dwivedi! llvm-svn: 207677
* Fix handling of redeclaration lookup for using declarations, where the priorRichard Smith2014-04-111-0/+34
| | | | | | | | | | | declaration is not visible. Previously we didn't find hidden friend names in this redeclaration lookup, because we forgot to treat it as a redeclaration lookup. Conversely, we did find some local extern names, but those don't actually conflict with a namespace-scope using declaration, because the only conflicts we can get are scope conflicts, not conflicts due to the entities being members of the same namespace. llvm-svn: 206011
* Restrict redeclaration of tags introduced by using decls to MSVCCompatAlp Toker2014-01-181-21/+0
| | | | | | | This limits the facility added in r199490 while we seek clarification on the standard. llvm-svn: 199531
* Permit redeclaration of tags introduced by using declsAlp Toker2014-01-171-0/+21
| | | | | | | This valid construct appears in MSVC headers where it's used to provide a definition for the '::type_info' compiler builtin type. llvm-svn: 199490
* Be smarter about deciding to add a leading '::' to aKaelyn Uhrain2013-10-191-6/+6
| | | | | | NestedNameSpecifier that replaces an existing specifier. llvm-svn: 193019
* Offer typo suggestions for 'using' declarations.Kaelyn Uhrain2013-07-101-0/+42
| | | | | | Patch courtesy of Luke Zarko <zarko@google.com> llvm-svn: 186019
* When checking a using declaration, make sure that the context we'reDouglas Gregor2010-12-211-0/+10
| | | | | | looking in is complete. Fixes PR8756. llvm-svn: 122323
* Diagnose attempst to template using declarations and using directives.John McCall2010-11-101-0/+13
| | | | | | Recover from the latter and fail early for the former. Fixes PR8022. llvm-svn: 118669
* Handle redeclarations found by ADL deterministically and reasonably.John McCall2010-01-261-0/+18
| | | | | | | | | This solution relies on an O(n) scan of redeclarations, which means it might scale poorly in crazy cases with tons of redeclarations brought in by a ton of distinct associated namespaces. I believe that avoiding this is not worth the common-case cost. llvm-svn: 94530
* Allow ADL to find functions imported by using decls. Leave wordy commentJohn McCall2010-01-261-0/+17
| | | | | | about interaction between ADL and default arguments. Shrug shoulders, commit. llvm-svn: 94524
* Handle using declarations in overloaded and template functions during ADL andChandler Carruth2009-12-291-0/+18
| | | | | | | | | | address resolution. This fixes PR5751. Also, while we're here, remove logic from ADL which mistakenly included the definition namespaces of overloaded and/or templated functions whose name or address is used as an argument. llvm-svn: 92245
* 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
* In CXXRecordDecl::forallBases, add the base to the "queue", so we walk more ↵Anders Carlsson2009-12-091-0/+4
| | | | | | than one heirarchy of classes. John, please review. llvm-svn: 90948
* When adding the underlying declaration of a decl to a lookup-resultsDouglas Gregor2009-11-151-0/+21
| | | | | | | | | set, expand overloaded function declarations. Long-term, this should actually be done by the name-lookup code rather than here, but this part of the code (involving using declarations) is getting a makeover now and the test-case is useful. llvm-svn: 88846
* Teach Sema::isDeclInScope to handle overload sets constructed fromDouglas Gregor2009-09-281-0/+11
| | | | | | | | | | | | | | | | | functions that occur in multiple declaration contexts, e.g., because some were found via using declarations. Now, isDeclInScope will build a new overload set (when needed) containing only those declarations that are actually in scope. This eliminates a problem found with libstdc++'s <iostream>, where the presence of using In the longer term, I'd like to eliminate Sema::isDeclInScope in favor of better handling of the RedeclarationOnly flag in the name-lookup routines. That way, name lookup only returns the entities that matter, rather than taking the current two-pass approach of producing too many results and then filtering our the wrong results. It's not efficient, and I'm sure that we aren't filtering everywhere we should be. llvm-svn: 82954
* Fix another assert related to using decls.Anders Carlsson2009-06-261-0/+8
llvm-svn: 74262
OpenPOWER on IntegriCloud