summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/class-base-member-init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make CXXBaseSpecifier::getType return unqual type.Eli Friedman2013-07-111-0/+10
| | | | | | | | | | | Various pieces of code, like base initialization in Sema and RTTI IRGen, don't properly ignore qualifiers on base classes. Instead of auditing the whole codebase, just strip them off in the getter. (The type as written is still available in the TypeSourceInfo for code that cares.) Fixes PR16596. llvm-svn: 186125
* <rdar://problem/13185264> Don't crash when attempting to redundantly ↵Douglas Gregor2013-03-251-0/+8
| | | | | | initialize a member of an anonymous union. llvm-svn: 177941
* Support decltype in member initializers.David Blaikie2012-01-241-1/+17
| | | | | | | | | | This is the last piece of N3031 (decltype in weird places) - supporting the use of decltype in a class ctor's member-initializer-list to specify the base classes to initialize. Reviewed by Richard Smith. llvm-svn: 148789
* Include named unions in union member init checkingDavid Blaikie2011-11-171-3/+3
| | | | llvm-svn: 144883
* Diagnose more cases of initializing distinct members of an anonymous unionJohn McCall2010-04-101-0/+23
| | | | | | | member. Use a better diagnostic for this case. Also fix a bug with nested anonymous structs/unions for -Wreorder; this last was PR6575. llvm-svn: 100923
* Diagnose multiple base and member initializers in class templates.Anders Carlsson2010-04-021-0/+25
| | | | llvm-svn: 100179
* Fix a bug where we would incorrectly report an error about initializing two ↵Anders Carlsson2010-03-301-6/+15
| | | | | | fields in an anonymous struct. llvm-svn: 99891
* When pretty-printing tag types, only print the tag if we're in C (andJohn McCall2010-03-101-1/+1
| | | | | | | | | | 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
* 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
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-3/+3
| | | | llvm-svn: 81346
* A more detailed diagnosis of ill-formed ctor-initializerFariborz Jahanian2009-06-301-1/+3
| | | | | | list. llvm-svn: 74480
* Diagnose multiple initialzation of data-member/base Fariborz Jahanian2009-06-291-0/+17
in the ctor-initializer list. More to come. llvm-svn: 74465
OpenPOWER on IntegriCloud