forked from qt-creator/qt-creator
Qmake: More [[fallthrough]] warnings
Change-Id: I45acf2b2f6bd11a144786e076d87398d729fe2d8 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -287,7 +287,7 @@ QMakeEvaluator::quoteValue(const ProString &val)
|
|||||||
break;
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
quote = true;
|
quote = true;
|
||||||
// fallthrough
|
[[fallthrough]];
|
||||||
default:
|
default:
|
||||||
ret += c;
|
ret += c;
|
||||||
break;
|
break;
|
||||||
|
@@ -1662,7 +1662,7 @@ QMakeEvaluator::VisitReturn QMakeEvaluator::expandVariableReferences(
|
|||||||
tokPtr++;
|
tokPtr++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// fallthrough
|
[[fallthrough]];
|
||||||
default:
|
default:
|
||||||
Q_ASSERT_X(false, "expandVariableReferences", "Unrecognized token");
|
Q_ASSERT_X(false, "expandVariableReferences", "Unrecognized token");
|
||||||
break;
|
break;
|
||||||
@@ -2138,7 +2138,7 @@ QString QMakeEvaluator::formatValue(const ProString &val, bool forceQuote)
|
|||||||
break;
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
quote = true;
|
quote = true;
|
||||||
// fallthrough
|
[[fallthrough]];
|
||||||
default:
|
default:
|
||||||
ret += c;
|
ret += c;
|
||||||
break;
|
break;
|
||||||
|
@@ -1563,7 +1563,7 @@ static bool getBlock(const ushort *tokens, int limit, int &offset, QString *outS
|
|||||||
case TokRemove:
|
case TokRemove:
|
||||||
case TokReplace:
|
case TokReplace:
|
||||||
// The parameter is the sizehint for the output.
|
// The parameter is the sizehint for the output.
|
||||||
// fallthrough
|
[[fallthrough]];
|
||||||
case TokLine: {
|
case TokLine: {
|
||||||
ushort dummy;
|
ushort dummy;
|
||||||
ok = getUshort(tokens, limit, offset, &dummy, outStr);
|
ok = getUshort(tokens, limit, offset, &dummy, outStr);
|
||||||
|
Reference in New Issue
Block a user