forked from qt-creator/qt-creator
CPlusPlus: Inline more simple Type related functions
Change-Id: I2103e8047b385b438e58072e8a2689f1889d2724 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -451,7 +451,7 @@ void tst_Lookup::iface_impl_scoping()
|
||||
Argument *method1Arg = method1Impl->memberAt(0)->asArgument();
|
||||
QVERIFY(method1Arg);
|
||||
QCOMPARE(method1Arg->identifier()->chars(), "arg");
|
||||
QVERIFY(method1Arg->type()->isIntegerType());
|
||||
QVERIFY(method1Arg->type()->asIntegerType());
|
||||
|
||||
Block *method1Body = method1Impl->memberAt(1)->asBlock();
|
||||
QVERIFY(method1Body);
|
||||
@@ -465,7 +465,7 @@ void tst_Lookup::iface_impl_scoping()
|
||||
QVERIFY(arg->name());
|
||||
QVERIFY(arg->name()->identifier());
|
||||
QCOMPARE(arg->name()->identifier()->chars(), "arg");
|
||||
QVERIFY(arg->type()->isIntegerType());
|
||||
QVERIFY(arg->type()->asIntegerType());
|
||||
|
||||
const QList<LookupItem> candidates = context.lookup(arg->name(), method1Body->enclosingScope());
|
||||
QCOMPARE(candidates.size(), 1);
|
||||
|
||||
Reference in New Issue
Block a user