summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/dcl.dcl/basic.namespace
Commit message (Collapse)AuthorAgeFilesLines
...
* Whenever we complain about a failed initialization of a function orDouglas Gregor2010-04-221-1/+2
| | | | | | | | | | | | | | | | | method parameter, provide a note pointing at the parameter itself so the user does not have to manually look for the function/method being called and match up parameters to arguments. For example, we now get: t.c:4:5: warning: incompatible pointer types passing 'long *' to parameter of type 'int *' [-pedantic] f(long_ptr); ^~~~~~~~ t.c:1:13: note: passing argument to parameter 'x' here void f(int *x); ^ llvm-svn: 102038
* 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
* Turn access control on by default in -cc1.John McCall2010-04-091-1/+1
| | | | | | | | Remove -faccess-control from -cc1; add -fno-access-control. Make the driver pass -fno-access-control by default. Update a bunch of tests to be correct under access control. llvm-svn: 100880
* Regularize support for naming conversion functions in using decls.John McCall2010-03-311-1/+42
| | | | llvm-svn: 99979
* Fix a really trivial crasher and begin fleshing out one of the namespace testChandler Carruth2010-02-251-1/+42
| | | | | | cases. llvm-svn: 97134
* When parsing an identifier as an expression in C++, only try to annotate itJohn McCall2010-01-071-2/+3
| | | | | | | | | | as a type or scope token if the next token requires it. This eliminates a lot of redundant lookups in C++, but there's room for improvement; a better solution would do a single lookup whose kind and results would be passed through the parser. llvm-svn: 92930
* 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 instead of 'clang', and forcibly disable use of 'Daniel Dunbar2009-12-151-1/+1
| | | | | | | clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-1513-13/+13
| | | | | | | | | - 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
* Test member template using hiding.John McCall2009-12-111-2/+45
| | | | llvm-svn: 91099
* Check if the target of a using decl is already declared in this scope beforeJohn McCall2009-12-111-0/+14
| | | | | | | doing any of the other redeclaration checks. We were missing a few cases. Fixes PR 5752. llvm-svn: 91096
* Actually try to trigger the last diagnostic in the declaration-collision ↵John McCall2009-12-101-4/+9
| | | | | | | | | test case. Surprisingly, we *do* diagnose one of them. Since we don't really track scopes into instantiation, this has to signal some kind of bug. llvm-svn: 91063
* Improve the diagnostic when a new declaration conflicts with a using shadowJohn McCall2009-12-101-0/+89
| | | | | | | | declaration. Rename note_using_decl to note_using, which is possibly less confusing. Add a test for non-class-scope using decl collisions and be sure to note the case we can't diagnose yet. llvm-svn: 91057
* Implement redeclaration checking and hiding semantics for using ↵John McCall2009-12-103-0/+190
| | | | | | | | | | | declarations. There are a couple of O(n^2) operations in this, some analogous to the usual O(n^2) redeclaration problem and some not. In particular, retroactively removing shadow declarations when they're hidden by later decls is pretty unfortunate. I'm not yet convinced it's worse than the alternative, though. llvm-svn: 91045
* Handle unresolved using decls in bare lookups. These are not being adequatelyJohn McCall2009-12-081-0/+13
| | | | | | tested. Fixes PR5727. llvm-svn: 90893
* Correctly implement the C++03 and 0x restrictions on class-member usingJohn McCall2009-12-082-5/+60
| | | | | | declarations. llvm-svn: 90843
* Fix "using typename" and the instantiation of non-dependent using declarations.John McCall2009-12-041-0/+183
| | | | llvm-svn: 90614
* Honor using declarations in overload resolution. Most of the code forJohn McCall2009-12-031-0/+63
| | | | | | | | | | | overloaded-operator resolution is wildly untested, but the parallel code for methods seems to satisfy some trivial tests. Also change some overload-resolution APIs to take a type instead of an expression, which lets us avoid creating a spurious CXXThisExpr when resolving implicit member accesses. llvm-svn: 90410
* Improve on diagnosing type mismatches because of Fariborz Jahanian2009-11-181-2/+2
| | | | | | lack of viable convesion functions. llvm-svn: 89216
* Incremental progress on using declarations. Split UnresolvedUsingDecl intoJohn McCall2009-11-181-4/+27
| | | | | | | | | | two classes, one for typenames and one for values; this seems to have some support from Doug if not necessarily from the extremely-vague-on-this-point standard. Track the location of the 'typename' keyword in a using-typename decl. Make a new lookup result for unresolved values and deal with it in most places. llvm-svn: 89184
* Commit this random test case.John McCall2009-11-171-0/+44
| | | | llvm-svn: 89068
* Create a new Scope when parsing a declaration with a C++ scope specifier.John McCall2009-11-111-0/+13
| | | | llvm-svn: 86764
* Make a somewhat more convincing test case for unqualified lookup throughJohn McCall2009-11-101-0/+128
| | | | | | | | | using directives, and fix a bug thereby exposed: since we're playing tricks with pointers, we need to make certain we're always using the same pointers for things. Also tweak an existing error message. llvm-svn: 86679
* 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
* Switch parsing of using declarations over to ParseUnqualifiedId.Douglas Gregor2009-11-041-3/+3
| | | | llvm-svn: 86027
* 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
* More work on using declarations.Anders Carlsson2009-08-283-4/+24
| | | | llvm-svn: 80333
* Many improvements to using declarations.Anders Carlsson2009-08-282-0/+35
llvm-svn: 80332
OpenPOWER on IntegriCloud