qt5base-lts/tests/auto/tools/moc
Samuel Gaist a5eabac96d moc: add support for C++11 enum struct
C++11 added the new enum class key as well as enum struct. While the
former is likely the most known and used, the later can be used in the
same contexts and with the same effects.

Currently moc doesn't parse enum struct while it does for enum class.
This patch fixes this.

[ChangeLog][moc] moc now parses enum struct the same way as enum class
therefore that keyword can be used with the Q_ENUM macro as well as
Q_FLAG and Q_DECLARE_FLAGS.

Change-Id: Iaac3814ad63a15ee4d91b281d451e786b510449c
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2018-12-15 13:24:29 +00:00
..
subdir
task71021
Test.framework/Headers
testproject
.gitattributes
.gitignore
assign-namespace.h
backslash-newlines.h
c-comments.h
cstyle-enums.h
cxx11-enums.h moc: add support for C++11 enum struct 2018-12-15 13:24:29 +00:00
cxx11-explicit-override-control.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
cxx11-final-classes.h
cxx17-namespaces.h
dir-in-include-path.h
dollars.h
error-on-wrong-notify.h
escapes-in-string-literals.h
extraqualification.h
forgotten-qinterface.h
forward-declared-param.h
function-with-attributes.h
gadgetwithnoenums.h
grand-parent-gadget-class.h
Header
interface-from-framework.h
interface-from-include.h
macro-on-cmdline.h
moc.pro Clean up the moc "no-keywords" test 2018-03-21 10:31:20 +00:00
namespace_no_merge.h
namespace.h moc: Don't error our when parsing "using namespace __identifier(...)" 2018-03-05 06:54:06 +00:00
namespaced-flags.h
no-keywords.h Clean up the moc "no-keywords" test 2018-03-21 10:31:20 +00:00
non-gadget-parent-class.h
oldstyle-casts.h
os9-newlines.h
parse-boost.h
parse-defines.h
plugin_metadata.h
pp-dollar-signs.h
pure-virtual-signals.h
qinvokable.h
qprivateslots.h
qtbug-35657-gadget.h
related-metaobjects-in-gadget.h
related-metaobjects-in-namespaces.h
related-metaobjects-name-conflict.h
single_function_keyword.h
single-quote-digit-separator-n3781.h
slots-with-void-template.h
task87883.h
task189996.h
task192552.h
task234909.h
task240368.h
template-gtgt.h
trigraphs.h
tst_moc.cpp moc: add support for C++11 enum struct 2018-12-15 13:24:29 +00:00
unterminated-function-macro.h
using-namespaces.h
warn-on-multiple-qobject-subclasses.h
warn-on-property-without-read.h
win-newlines.h