qt5base-lts/tests/auto/other/compiler
Thiago Macieira 0f559a2d99 Force the use of the C++11 alignof keyword instead of an extension
If the compiler supports C++11 alignof, let's use it. No point in
perpetuating the use of __alignof__ or __alignof.

There's a fallback implementation in qglobal.h that works even without
compiler extensions. We can't drop it just yet (alignas is not a
required C++11 feature), but at this point I doubt that fallback is used
anywhere anymore.

The tst_compiler test was wrong to use alignof(variable). That's not
permitted by the standard nor would it work with our fallback
implementation. MSVC 2015 enforces this, but ICC, GCC and Clang don't.

Change-Id: Ifea6e497f11a461db432ffff1448abfa86672c63
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-05-29 18:45:13 +00:00
..
.gitignore Moved autotests in category 'other' into new directory structure 2011-09-09 09:36:41 +02:00
baseclass.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
baseclass.h Update copyright headers 2015-02-11 06:49:51 +00:00
compiler.pro Use correct test to add C++14 to the project configuration 2015-12-01 15:46:31 +00:00
derivedclass.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
derivedclass.h Update copyright headers 2015-02-11 06:49:51 +00:00
othersource.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
tst_compiler.cpp Force the use of the C++11 alignof keyword instead of an extension 2016-05-29 18:45:13 +00:00