summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/class-layout.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR37275 packed attribute should not apply to base classesRichard Smith2018-04-291-0/+34
| | | | | | | | | | | | | Clang incorrectly applied the packed attribute to base classes. Per GCC's documentation and as can be observed from its behavior, packed only applies to members, not base classes. This change is conditioned behind -fclang-abi-compat so that an ABI break can be avoided by users if desired. Differential Revision: https://reviews.llvm.org/D46218 llvm-svn: 331136
* PR6037Nathan Sidwell2015-01-191-2/+2
| | | | | | Warn on inaccessible direct base llvm-svn: 226423
* Fix bug in computing POD-for-layout.Eli Friedman2013-07-201-1/+468
| | | | | | | | | | | | A class with a field of non-POD-for-layout type is not POD-for-layout. This computation should not depend on whether the field is of POD type in the language sense. Fixes PR16537. Patch by Josh Magee. llvm-svn: 186741
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-191-0/+1
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Turn on the new empty base subobject tracking code. It's a bit faster than ↵Anders Carlsson2010-05-301-0/+17
| | | | | | the previous code. However, it still has quadratic performance, something which I intend to fix shortly in a subsequent patch. llvm-svn: 105161
* Rework the way virtual primary bases are added when laying out classes. ↵Anders Carlsson2010-05-291-0/+14
| | | | | | Instead of doing it as a separate step, we now use the BaseSubobjectInfo and use it when laying out the bases. This fixes a bug where we would either not add a primary virtual base at all, or add it at the wrong offset. llvm-svn: 105110
* Support __attribute__((packed)) (along with other attributes) at theDouglas Gregor2010-03-291-0/+7
| | | | | | end of a struct/class/union in C++, from Justin Bogner! llvm-svn: 99811
* 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
* When laying out bitfields, make sure that the data size is always aligned to ↵Anders Carlsson2009-11-221-0/+17
| | | | | | a byte. This fixes PR5580. llvm-svn: 89611
* Temporary band-aid for handling empty classes somewhat better.Anders Carlsson2009-09-171-0/+5
| | | | llvm-svn: 82124
* Add two more tests.Anders Carlsson2009-07-281-0/+13
| | | | llvm-svn: 77330
* Handle layout of non-virtual base classes.Anders Carlsson2009-07-191-0/+31
llvm-svn: 76348
OpenPOWER on IntegriCloud