forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.6'
Change-Id: I724da8f761275865e735e7dce10c3b2b2d99fe94
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#include <QtCore/qvarlengtharray.h>
|
||||
#include <QtCore/qdebug.h>
|
||||
|
||||
#include <utils/qtcfallthrough.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
Q_CORE_EXPORT double qstrtod(const char *s00, char const **se, bool *ok);
|
||||
QT_END_NAMESPACE
|
||||
@@ -759,7 +761,7 @@ again:
|
||||
u = QLatin1Char('\0');
|
||||
break;
|
||||
}
|
||||
// fall through
|
||||
Q_FALLTHROUGH();
|
||||
case '1':
|
||||
case '2':
|
||||
case '3':
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#include <QTextBlock>
|
||||
#include <QTextDocument>
|
||||
|
||||
#include <utils/qtcfallthrough.h>
|
||||
|
||||
static Q_LOGGING_CATEGORY(formatterLog, "qtc.qmljs.formatter")
|
||||
|
||||
namespace QmlJS {
|
||||
@@ -278,7 +280,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block)
|
||||
enter(expression_continuation);
|
||||
break;
|
||||
}
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case ternary_op_after_colon:
|
||||
case expression:
|
||||
if (tryInsideExpression())
|
||||
@@ -1142,7 +1144,7 @@ void QtStyleCodeFormatter::onEnter(int newState, int *indentDepth, int *savedInd
|
||||
*savedIndentDepth = parentState.savedIndentDepth;
|
||||
break;
|
||||
}
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case substatement_open:
|
||||
// special case for "foo: {" and "property int foo: {"
|
||||
if (parentState.type == binding_assignment)
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
#include "qmljsvalueowner.h"
|
||||
#include "parser/qmljsast_p.h"
|
||||
|
||||
#include <utils/qtcfallthrough.h>
|
||||
|
||||
using namespace QmlJS;
|
||||
|
||||
/*!
|
||||
@@ -444,7 +446,7 @@ bool Evaluate::visit(AST::BinaryExpression *ast)
|
||||
//case QSOperator::And: // ### enable once implemented below
|
||||
//case QSOperator::Or:
|
||||
lhs = value(ast->left);
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case QSOperator::Assign:
|
||||
rhs = value(ast->right);
|
||||
break;
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <cplusplus/cppmodelmanagerbase.h>
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/qtcfallthrough.h>
|
||||
#include <utils/runextensions.h>
|
||||
|
||||
#include <QDir>
|
||||
@@ -1391,7 +1392,7 @@ ViewerContext ModelManagerInterface::completeVContext(const ViewerContext &vCtx,
|
||||
break;
|
||||
case ViewerContext::AddAllPathsAndDefaultSelectors:
|
||||
res.selectors.append(defaultVCtx.selectors);
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case ViewerContext::AddAllPaths:
|
||||
{
|
||||
foreach (const QString &path, defaultVCtx.paths)
|
||||
@@ -1400,10 +1401,10 @@ ViewerContext ModelManagerInterface::completeVContext(const ViewerContext &vCtx,
|
||||
case Dialect::AnyLanguage:
|
||||
case Dialect::Qml:
|
||||
res.maybeAddPath(info.qtQmlPath);
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case Dialect::QmlQtQuick1:
|
||||
res.maybeAddPath(info.qtImportsPath);
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case Dialect::QmlQtQuick2:
|
||||
case Dialect::QmlQtQuick2Ui:
|
||||
{
|
||||
@@ -1439,7 +1440,7 @@ ViewerContext ModelManagerInterface::completeVContext(const ViewerContext &vCtx,
|
||||
}
|
||||
case ViewerContext::AddDefaultPathsAndSelectors:
|
||||
res.selectors.append(defaultVCtx.selectors);
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case ViewerContext::AddDefaultPaths:
|
||||
foreach (const QString &path, defaultVCtx.paths)
|
||||
res.maybeAddPath(path);
|
||||
|
||||
Reference in New Issue
Block a user