aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs-setup-toolchains/commandlineparser.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-10-30 15:54:06 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2017-10-30 15:13:57 +0000
commita4586e52f2e027d9cd3810302569eec152bcfc54 (patch)
tree02ea617bf448afbfa296257743a67e07c726c28e /src/app/qbs-setup-toolchains/commandlineparser.h
parentc683b0274a026103f37ebb5bc57f12bb3f45cf36 (diff)
Use the [[noreturn]] attribute instead of Q_NORETURN
We can do this now that we require MSVC 2015. Change-Id: I77be55435d4db6c6ff17afeff779e163cf3803fb Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/app/qbs-setup-toolchains/commandlineparser.h')
-rw-r--r--src/app/qbs-setup-toolchains/commandlineparser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/qbs-setup-toolchains/commandlineparser.h b/src/app/qbs-setup-toolchains/commandlineparser.h
index c2c501bb1..94a7a6283 100644
--- a/src/app/qbs-setup-toolchains/commandlineparser.h
+++ b/src/app/qbs-setup-toolchains/commandlineparser.h
@@ -57,9 +57,9 @@ public:
QString usageString() const;
private:
- Q_NORETURN void throwError(const QString &message);
+ [[noreturn]] void throwError(const QString &message);
void assignOptionArgument(const QString &option, QString &argument);
- Q_NORETURN void complainAboutExtraArguments();
+ [[noreturn]] void complainAboutExtraArguments();
bool m_helpRequested;
bool m_autoDetectionMode;