summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/default-constructor-initializers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Test] Make Lit tests C++11 compatible #10Charles Li2017-02-241-15/+66
| | | | | | Differential Revision: https://reviews.llvm.org/D21626 llvm-svn: 296193
* Implement some tests for defaulted constructors. To do this I had toAlexis Hunt2011-05-171-0/+7
| | | | | | suppress an error we were previously emitting on valid union code. llvm-svn: 131440
* Relax the construction of a definition for implicit, trivial defaultChandler Carruth2010-08-231-1/+7
| | | | | | | | | | | | | | | constructors. We perform semantic checking when creating the definition, and this isn't needed in certain contexts (value initialization) but is in others (default initialization). This fixes PR7948. We add explicit code to the default initialization path to ensure the definition is both present and valid. Doug, please review. I think this follows your latest suggestion, and it ended up remarkably cleaner than I anticipated. Also let me know if similar logic should be followed for destructors and copy-constructors. llvm-svn: 111802
* Change the 'declared at' diagnostic to say 'declared here'.Anders Carlsson2010-04-231-3/+3
| | | | llvm-svn: 102163
* When pretty-printing tag types, only print the tag if we're in C (andJohn McCall2010-03-101-3/+2
| | | | | | | | | | 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
* Add additional note to mark the cause of synthesized constructors. MarkEli Friedman2009-11-091-3/+3
| | | | | | | declaration invalid if the constructor can't be properly built. Addresses remaining review comments from Fariborz for r86500. llvm-svn: 86579
* Unify the codepaths used to verify base and member initializers for explicitlyEli Friedman2009-11-091-8/+8
| | | | | | | | | | | | | | | | and implicitly defined constructors. This has a number of benefits: 1. Less code. 2. Explicit and implicit constructors get the same diagnostics. 3. The AST explicitly contains constructor calls from implicit default constructors. This allows handing some cases that previously weren't handled correctly in IRGen without any additional code. Specifically, implicit default constructors containing calls to constructors with default arguments are now handled correctly. llvm-svn: 86500
* Fix up error reporting when object cannot be constructed Fariborz Jahanian2009-10-081-3/+3
| | | | | | | because of missing default constructor of a member. Fixes pr5154. llvm-svn: 83583
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-3/+3
| | | | llvm-svn: 81346
* Pass the DeclName to the diagnostic builder so that member names will be ↵Anders Carlsson2009-07-091-3/+3
| | | | | | quoted correctly. llvm-svn: 75150
* Fixed text of a diagnostics.Fariborz Jahanian2009-06-221-2/+2
| | | | llvm-svn: 73885
* Made improvements in c++'s object model patch on Doug's review.Fariborz Jahanian2009-06-201-0/+56
llvm-svn: 73833
OpenPOWER on IntegriCloud