summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/constructor-init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Explicitly-defaulted copy/move constructors are not "implicit", butDouglas Gregor2011-09-221-1/+73
| | | | | | | they still need the logic to cope with array member initialization. Fixes PR10720. llvm-svn: 140302
* Fix testcaseDouglas Gregor2011-07-011-16/+16
| | | | llvm-svn: 134262
* Don't zero-initialize default-initialized local variables that haveDouglas Gregor2011-07-011-0/+16
| | | | | | | | trivial default constructors. This generated-code regression was caused by r131796, which had simplified the handling of default initialization in Sema. Fixes <rdar://problem/9694300>. llvm-svn: 134260
* Move unnamed_addr after the function arguments on Sabre's request.Rafael Espindola2011-01-251-3/+3
| | | | llvm-svn: 124210
* Add unnamed_addr to constructors and destructors.Rafael Espindola2011-01-111-3/+3
| | | | llvm-svn: 123197
* Fix test for no-asserts builds.John McCall2010-09-171-1/+1
| | | | llvm-svn: 114185
* Currently we're initializing the vtable pointers of a class only afterJohn McCall2010-09-171-0/+32
| | | | | | | | | | | | | | | the bases are completely initialized. This won't work --- base initializer expressions can rely on the vtables having been set up. Check for uses of 'this' in the initializers and force a vtable initialization if found. This might not be good enough; we might need to extend this to handle the possibility of arbitrary code finding an external reference to this (not yet completely-constructed!) object and accessing through it, in which case we'll probably find ourselves doing a lot more unnecessary stores. llvm-svn: 114153
* When adding initializers to a constructor, be sure that we are lookingDouglas Gregor2010-03-261-0/+21
| | | | | | | | through the bases and fields of the definition of the class in which the constructor is declared, rather than some other declaration of that class. llvm-svn: 99661
* Switch more of Sema::CheckInitializerTypes over toDouglas Gregor2009-12-191-1/+22
| | | | | | | | | | InitializationSequence. Specially, switch initialization of a C++ class type (either copy- or direct-initialization). Also, make sure that we create an elidable copy-construction when performing copy initialization of a C++ class variable. Fixes PR5826. llvm-svn: 91750
* 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-13/+14
| | | | llvm-svn: 81346
* Array member construction in prologue of user-declaredFariborz Jahanian2009-08-211-0/+3
| | | | | | constructors. llvm-svn: 79640
* Patch to provide cast of objects in member accessFariborz Jahanian2009-07-291-2/+4
| | | | | | | excpression, if needed, and remove some ir-gen code now unnencessary. llvm-svn: 77490
* More cleanup of data member access and then some.Fariborz Jahanian2009-07-281-0/+3
| | | | llvm-svn: 77351
* More work toward data member access ir-gen.Fariborz Jahanian2009-07-281-0/+3
| | | | llvm-svn: 77332
* ir-gen for non-virtual base class initializationFariborz Jahanian2009-07-251-0/+49
in constructors. llvm-svn: 77087
OpenPOWER on IntegriCloud