summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-reorder-ctor-initialization.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve -Wreorder to handle cases of anonymous class member orderingDavid Blaikie2013-01-171-0/+11
| | | | llvm-svn: 172707
* Fix a crasher in constructor-initializer reordering warnings (PR7179).Douglas Gregor2010-05-201-0/+10
| | | | llvm-svn: 104299
* Diagnose more cases of initializing distinct members of an anonymous unionJohn McCall2010-04-101-0/+12
| | | | | | | 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 misordered initializers in constructor templates immediately instead ofJohn McCall2010-04-101-18/+27
| | | | | | | | | | when they're instantiated. Merge the note into the -Wreorder warning; it doesn't really contribute much, and it was splitting a thought across diagnostics anyway. Don't crash in the parser when a constructor's initializers end in a comma and there's no body; the recovery here is still terrible, but anything's better than a crash. llvm-svn: 100922
* Fix a nasty bug in the virtual base computation which would lead to us ↵Anders Carlsson2010-03-291-0/+12
| | | | | | initializing virtual bases in the wrong order. llvm-svn: 99806
* When pretty-printing tag types, only print the tag if we're in C (andJohn McCall2010-03-101-11/+11
| | | | | | | | | | 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-4/+4
| | | | llvm-svn: 81346
* Misc fixes for -Wreorder:Eli Friedman2009-07-211-1/+14
| | | | | | | | | 1. Make it work correctly with anonymous unions. 2. Don't compute it if the warning isn't enabled. 3. Optimize the algorithm slightly to make it linear time in the case where we don't produce any warnings. llvm-svn: 76630
* Patch to build list of inherited virtual base classes Fariborz Jahanian2009-07-101-6/+64
| | | | | | | | in their order of construction for each class and use it to to check on propery order of base class construction under -Wreorder option. llvm-svn: 75270
* Sema check on out of order object initialization ofFariborz Jahanian2009-07-091-0/+18
class object's base and members under -Wreorder flag. llvm-svn: 75168
OpenPOWER on IntegriCloud