summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/access-base-class.cpp
Commit message (Collapse)AuthorAgeFilesLines
* When we complain about a member being inaccessible due to a constraintDouglas Gregor2010-05-281-1/+1
| | | | | | | along an access path, add another note pointing at the member we actually found. llvm-svn: 104937
* 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
* When elevating access along an inheritance path, initialize the computedJohn McCall2010-03-181-2/+3
| | | | | | | | | | | | | | | | access to the (elevated) access of the accessed declaration, if applicable, rather than plunking that access onto the end after we've calculated the inheritance access. Also, being a friend of a derived class gives you public access to its members (subject to later modification by further inheritance); it does not simply ignore a single location of restricted inheritance. Also, when computing the best unprivileged path to a subobject, preserve the information that the worst path might be AS_none (forbidden) rather than a minimum of AS_private. llvm-svn: 98899
* When pretty-printing tag types, only print the tag if we're in C (andJohn McCall2010-03-101-3/+3
| | | | | | | | | | therefore not creating ElaboratedTypes, which are still pretty-printed with the written tag). Most of these testcase changes were done by script, so don't feel too sorry for my fingers. llvm-svn: 98149
* Improve access control diagnostics. Perform access control on member-pointerJohn McCall2010-02-101-6/+17
| | | | | | | conversions. Fix an access-control bug where privileges were not considered at intermediate points along the inheritance path. Prepare for friends. llvm-svn: 95775
* Initialization improvements: addition of string initialization and a fewEli Friedman2009-12-191-6/+3
| | | | | | | | small bug fixes in SemaInit, switch over SemaDecl to use it more often, and change a bunch of diagnostics which are different with the new initialization code. llvm-svn: 91767
* 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
* Disable access control by default. It can be enabled with the ↵Anders Carlsson2009-05-131-1/+1
| | | | | | -faccess-control option. When we have better support for it, we can enable it by default again. llvm-svn: 71706
* Revert Sebastian's rvalue patch (r67870) since it caused test failures inAnders Carlsson2009-03-281-32/+0
| | | | | | | | SemaCXX//overload-member-call.cpp SemaCXX//overloaded-operator.cpp SemaTemplate//instantiate-method.cpp llvm-svn: 67912
* Implement access checking for protected base classes.Anders Carlsson2009-03-281-0/+32
| | | | llvm-svn: 67887
* It is OK to cast to a private base class if the current member belongs to ↵Anders Carlsson2009-03-271-0/+31
| | | | | | | | | | | the class that the private base class is a base of: class A {}; class B : private A { void f(B *b) { A* a = b; } }; llvm-svn: 67860
* Implement checking for base class access. Right now it's overly conservative ↵Anders Carlsson2009-03-271-0/+51
but that will change. (Also, protected isn't implemented right now). llvm-svn: 67827
OpenPOWER on IntegriCloud