diff options
| author | Tim Blechmann <tim@klingt.org> | 2022-10-05 19:37:07 +0800 |
|---|---|---|
| committer | Tim Blechmann <tim@klingt.org> | 2022-11-16 12:57:58 +0800 |
| commit | aadf0243c693d6bfd9009278b883e1d5b1015097 (patch) | |
| tree | 1f64dcf565f2454bacdec853e88157f69d479e9d /tools | |
| parent | 6b9c5f6ed7b768dc918feac76bf40cdffb72bfe7 (diff) | |
tooling: silence -Wextra-semi-stmt
silence clang's -Wextra-semi-stmt
Pick-to: 6.4
Change-Id: I5dee9ec46b44076f0fc0590399131b1b267e1ad2
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/qmltc/qmltccompiler.cpp | 2 | ||||
| -rw-r--r-- | tools/qmltc/qmltccompilerpieces.h | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/tools/qmltc/qmltccompiler.cpp b/tools/qmltc/qmltccompiler.cpp index 7ed2fecccb..ddb10879db 100644 --- a/tools/qmltc/qmltccompiler.cpp +++ b/tools/qmltc/qmltccompiler.cpp @@ -297,7 +297,7 @@ void QmltcCompiler::compileType( } // compilation stub: - current.externalCtor.body << u"Q_UNUSED(engine);"_s; + current.externalCtor.body << u"Q_UNUSED(engine)"_s; if (documentRoot || inlineComponent) { current.externalCtor.body << u"// document root:"_s; // if it's document root, we want to create our QQmltcObjectCreationBase diff --git a/tools/qmltc/qmltccompilerpieces.h b/tools/qmltc/qmltccompilerpieces.h index eb2a94a33f..bfd22e1b79 100644 --- a/tools/qmltc/qmltccompilerpieces.h +++ b/tools/qmltc/qmltccompilerpieces.h @@ -179,7 +179,7 @@ inline decltype(auto) QmltcCodeGenerator::generate_initCode(QmltcType ¤t, const bool isDocumentRoot = type == visitor->result(); const bool isInlineComponent = type->isInlineComponent(); - current.init.body << u"Q_UNUSED(creator);"_s; // can happen sometimes + current.init.body << u"Q_UNUSED(creator)"_s; // can happen sometimes current.init.body << u"auto context = parentContext;"_s; @@ -225,7 +225,7 @@ inline decltype(auto) QmltcCodeGenerator::generate_initCode(QmltcType ¤t, current.init.body << QStringLiteral("auto %1 = QQmlEnginePrivate::get(engine);").arg(privateEngineName); - current.init.body << QStringLiteral("Q_UNUSED(%1);").arg(privateEngineName); // precaution + current.init.body << QStringLiteral("Q_UNUSED(%1)").arg(privateEngineName); // precaution // when generating root or inlineComponents, we need to create a new (document-level) context. // otherwise, just use existing context as is @@ -425,8 +425,8 @@ inline void QmltcCodeGenerator::generate_endInitCode(QmltcType ¤t, // QML_endInit()'s parameters: // * QQmltcObjectCreationHelper* creator // * QQmlEngine* engine - current.endInit.body << u"Q_UNUSED(creator);"_s; - current.endInit.body << u"Q_UNUSED(engine);"_s; + current.endInit.body << u"Q_UNUSED(creator)"_s; + current.endInit.body << u"Q_UNUSED(engine)"_s; generate_qmltcInstructionCallCode(¤t.endInit, type, u"engine"_s, u"creator, engine"_s); @@ -461,8 +461,8 @@ QmltcCodeGenerator::generate_setComplexBindingsCode(QmltcType ¤t, // QML_setComplexBindings()'s parameters: // * QQmltcObjectCreationHelper* creator // * QQmlEngine* engine - current.setComplexBindings.body << u"Q_UNUSED(creator);"_s; - current.setComplexBindings.body << u"Q_UNUSED(engine);"_s; + current.setComplexBindings.body << u"Q_UNUSED(creator)"_s; + current.setComplexBindings.body << u"Q_UNUSED(engine)"_s; generate_qmltcInstructionCallCode(¤t.setComplexBindings, type, u"engine"_s, u"creator, engine"_s); @@ -487,9 +487,9 @@ inline void QmltcCodeGenerator::generate_interfaceCallCode(QmltcMethod *function // * bool canFinalize [optional, when document root or inline component root] const bool isDocumentRoot = type == visitor->result(); const bool isInlineComponent = type->isInlineComponent(); - function->body << u"Q_UNUSED(creator);"_s; + function->body << u"Q_UNUSED(creator)"_s; if (isDocumentRoot || isInlineComponent) - function->body << u"Q_UNUSED(canFinalize);"_s; + function->body << u"Q_UNUSED(canFinalize)"_s; if (auto base = type->baseType(); base->isComposite()) { function->body << u"// call base's method"_s; @@ -601,7 +601,7 @@ QmltcCodeGenerator::generate_handleOnCompletedCode(QmltcType ¤t, // QML_handleOnCompleted()'s parameters: // * QQmltcObjectCreationHelper* creator - current.handleOnCompleted.body << u"Q_UNUSED(creator);"_s; + current.handleOnCompleted.body << u"Q_UNUSED(creator)"_s; generate_qmltcInstructionCallCode(¤t.handleOnCompleted, type, QString(), u"creator"_s); } |
