summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/moc.pro
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-03-05 17:55:59 +0100
committerQt by Nokia <qt-info@nokia.com>2012-08-26 14:29:52 +0200
commit80694dd614a112046a5d5af1824ea52ef3a28823 (patch)
treeb0e85100a9ad67f3c833369de0b01c00b4e6dfd5 /tests/auto/tools/moc/moc.pro
parentd811b2434bd583a94a5e2b99808b8103768b1606 (diff)
moc: parse classes that use Q_DECL_FINAL|final|sealed
This only works with the C++11 contextual keyword directly, the MSVC equivalent 'sealed', or the Qt define for it. While this isn't a problem for syncqt, being an internal tool, moc should eventually be able to parse user code using local C++11-final-wrapping macros. For this, I guess moc would have to be taught to expand macros in code and not just test #if clauses, potentially driven by something like #pragma qt-moc expand-this #define MY_FINAL_CLASS final but that's something for someone more intimately familiar with moc's source than I am. Change-Id: Id6aec961a881e8d5a9b76a7fc8e1c02c71913f64 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/tools/moc/moc.pro')
-rw-r--r--tests/auto/tools/moc/moc.pro5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/tools/moc/moc.pro b/tests/auto/tools/moc/moc.pro
index 5baa15854c..3987309637 100644
--- a/tests/auto/tools/moc/moc.pro
+++ b/tests/auto/tools/moc/moc.pro
@@ -18,7 +18,10 @@ HEADERS += using-namespaces.h no-keywords.h task87883.h c-comments.h backslash-n
slots-with-void-template.h qinvokable.h namespaced-flags.h trigraphs.h \
escapes-in-string-literals.h cstyle-enums.h qprivateslots.h gadgetwithnoenums.h \
dir-in-include-path.h single_function_keyword.h task192552.h task189996.h \
- task234909.h task240368.h pure-virtual-signals.h cxx11-enums.h
+ task234909.h task240368.h pure-virtual-signals.h cxx11-enums.h \
+ cxx11-final-classes.h \
+
+
if(*-g++*|*-icc*|*-clang*|*-llvm):!irix-*:!win32-*: HEADERS += os9-newlines.h win-newlines.h
SOURCES += tst_moc.cpp