forked from qt-creator/qt-creator
Clang: Fix parse errors in clazy/tidy demo project
...otherwise not all intended diagnostics can be demonstrated. Change-Id: I2f69862cc6c8a2e58059d9075ad6fd7c7e72b4a5 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -42,7 +42,7 @@ class TestObject : public QObject
|
||||
|
||||
public:
|
||||
TestObject();
|
||||
TestObject(const TestObject& other);
|
||||
TestObject(const TestObject& other) {}
|
||||
|
||||
bool event(QEvent *event) override
|
||||
{
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
}
|
||||
|
||||
public slots:
|
||||
void someSlot();
|
||||
void someSlot() {}
|
||||
|
||||
// -Wclazy-function-args-by-value
|
||||
void someOtherSlot(const QPoint &point)
|
||||
@@ -136,3 +136,6 @@ TestObject::TestObject()
|
||||
// -Wclazy-qstring-arg
|
||||
QString("%1 %2").arg("1").arg("2");
|
||||
}
|
||||
|
||||
// Note: A fatal error like an unresolved include will make clazy stop emitting any diagnostics.
|
||||
// #include "clazy_example.moc"
|
||||
|
Reference in New Issue
Block a user