summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/value-initialization.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR10217: Provide diagnostics explaining why an implicitly-deleted specialRichard Smith2012-03-301-3/+2
| | | | | | member function is deleted. llvm-svn: 153773
* When overload resolution picks an implicitly-deleted special memberDouglas Gregor2012-02-151-2/+2
| | | | | | | | | function, provide a specialized diagnostic that indicates the kind of special member function (default constructor, copy assignment operator, etc.) and that it was implicitly deleted. Add a hook where we can provide more detailed information later. llvm-svn: 150611
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-131-1/+1
| | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
* Add a missing case for default constructor deletion.Alexis Hunt2011-05-201-5/+4
| | | | | | | This case is tested by the fact that the modified test produces significatly worse diagnostics. That's on the list. llvm-svn: 131759
* Change the 'declared at' diagnostic to say 'declared here'.Anders Carlsson2010-04-231-1/+1
| | | | llvm-svn: 102163
* Warn about non-aggregate classes with no user-declared constructorsDouglas Gregor2010-04-151-2/+4
| | | | | | | that have reference or const scalar members, since those members can never be initializer or modified. Fixes <rdar://problem/7804350>. llvm-svn: 101316
* 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
* Add additional note to mark the cause of synthesized constructors. MarkEli Friedman2009-11-091-1/+1
| | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | 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
* Remove previous patch for pr5296 due to further clarificationFariborz Jahanian2009-11-031-16/+3
| | | | | | of value-initialization and trivial constructors. llvm-svn: 85935
* Generate constructor for value-initialization cases, even if the Fariborz Jahanian2009-10-271-0/+23
implementation technique doesn't call the constructor at that point. DR302. Fixes pr5296. llvm-svn: 85249
OpenPOWER on IntegriCloud