Include Qt classes by module and remove unnecessary comments

This commit is contained in:
Simon Brunel 2020-02-11 21:21:18 +01:00
parent d5a82518f9
commit 2c1e631aed
43 changed files with 29 additions and 148 deletions

View File

@ -13,10 +13,8 @@
#include "qpromiseglobal.h"
#include "qpromiseresolver.h"
// Qt
#include <QExplicitlySharedDataPointer>
#include <QtCore/QExplicitlySharedDataPointer>
// C++ Standard Library
#include <chrono>
namespace QtPromise {
@ -79,7 +77,7 @@ public:
template <typename E = QPromiseTimeoutException>
inline QPromise<T> timeout(std::chrono::milliseconds msec, E&& error = E()) const;
inline QPromise<T> delay(int msec) const;
inline QPromise<T> delay(int msec) const;
inline QPromise<T> delay(std::chrono::milliseconds msec) const;
inline QPromise<T> wait() const;

View File

@ -8,10 +8,9 @@
#include "qpromise.h"
#include "qpromisehelpers.h"
// Qt
#include <QCoreApplication>
#include <QSharedPointer>
#include <QTimer>
#include <QtCore/QCoreApplication>
#include <QtCore/QSharedPointer>
#include <QtCore/QTimer>
namespace QtPromise {

View File

@ -10,15 +10,14 @@
#include "qpromiseglobal.h"
// Qt
#include <QCoreApplication>
#include <QAbstractEventDispatcher>
#include <QThread>
#include <QVector>
#include <QReadWriteLock>
#include <QSharedPointer>
#include <QSharedData>
#include <QPointer>
#include <QtCore/QAbstractEventDispatcher>
#include <QtCore/QCoreApplication>
#include <QtCore/QPointer>
#include <QtCore/QReadWriteLock>
#include <QtCore/QSharedData>
#include <QtCore/QSharedPointer>
#include <QtCore/QThread>
#include <QtCore/QVector>
namespace QtPromise {

View File

@ -8,8 +8,7 @@
#ifndef QTPROMISE_QPROMISECONNECTIONS_H
#define QTPROMISE_QPROMISECONNECTIONS_H
// Qt
#include <QSharedPointer>
#include <QtCore/QSharedPointer>
namespace QtPromise {

View File

@ -11,8 +11,7 @@
#include "qpromise_p.h"
#include "qpromiseglobal.h"
// Qt
#include <QException>
#include <QtCore/QException>
namespace QtPromise {

View File

@ -10,9 +10,8 @@
#include "qpromiseexceptions.h"
// Qt
#include <QFutureWatcher>
#include <QFuture>
#include <QtCore/QFuture>
#include <QtCore/QFutureWatcher>
namespace QtPromisePrivate {

View File

@ -8,12 +8,10 @@
#ifndef QTPROMISE_QPROMISEGLOBAL_H
#define QTPROMISE_QPROMISEGLOBAL_H
// QtCore
#include <QtGlobal>
// STL
#include <functional>
#include <array>
#include <functional>
namespace QtPromisePrivate
{

View File

@ -10,8 +10,7 @@
#include "qpromiseexceptions.h"
// Qt
#include <QExplicitlySharedDataPointer>
#include <QtCore/QExplicitlySharedDataPointer>
namespace QtPromise {

View File

@ -7,10 +7,7 @@
#include "../shared/data.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
#ifdef Q_CC_MSVC

View File

@ -8,14 +8,10 @@
#include "../shared/data.h"
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtConcurrent>
#include <QtPromise>
#include <QtTest>
// STL
#include <memory>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,11 +7,8 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtConcurrent>
#include <QtPromise>
#include <QtTest>
using namespace QtPromise;

View File

@ -5,11 +5,8 @@
* the LICENSE file in the root directory of this source tree.
*/
// QtPromise
#include <QtPromise>
// Qt
#include <QtConcurrent>
#include <QtPromise>
#include <QtTest>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,14 +7,10 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtConcurrent>
#include <QtPromise>
#include <QtTest>
// STL
#include <memory>
using namespace QtPromise;

View File

@ -8,10 +8,7 @@
#include "../shared/object.h"
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,11 +7,8 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtConcurrent>
#include <QtPromise>
#include <QtTest>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -8,10 +8,7 @@
#include "../shared/data.h"
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,13 +7,9 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
// STL
#include <memory>
using namespace QtPromise;

View File

@ -8,14 +8,10 @@
#include "../shared/data.h"
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtConcurrent>
#include <QtTest>
// STL
#include <memory>
using namespace QtPromise;

View File

@ -5,10 +5,7 @@
* the LICENSE file in the root directory of this source tree.
*/
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromisePrivate;

View File

@ -7,13 +7,9 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
// STL
#include <memory>
using namespace QtPromise;

View File

@ -7,13 +7,9 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
// C++ Standard Library
#include <chrono>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,11 +7,8 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtConcurrent>
#include <QtPromise>
#include <QtTest>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -8,10 +8,7 @@
#include "../shared/data.h"
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -8,13 +8,9 @@
#include "../shared/data.h"
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
// STL
#include <memory>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,10 +7,7 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -7,14 +7,11 @@
#include "../shared/utils.h"
#include <functional>
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
#include <functional>
using namespace QtPromise;
class tst_qpromise_then : public QObject

View File

@ -7,13 +7,9 @@
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
// C++ Standard Library
#include <chrono>
using namespace QtPromise;

View File

@ -8,10 +8,7 @@
#include "../shared/object.h"
#include "../shared/utils.h"
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -5,10 +5,7 @@
* the LICENSE file in the root directory of this source tree.
*/
// QtPromise
#include <QtPromise>
// Qt
#include <QtTest>
using namespace QtPromise;

View File

@ -8,7 +8,6 @@
#ifndef QTPROMISE_TESTS_AUTO_SHARED_DATA_H
#define QTPROMISE_TESTS_AUTO_SHARED_DATA_H
// STL
#include <utility>
struct Logs {

View File

@ -8,8 +8,7 @@
#ifndef QTPROMISE_TESTS_AUTO_SHARED_SENDER_H
#define QTPROMISE_TESTS_AUTO_SHARED_SENDER_H
// Qt
#include <QObject>
#include <QtCore/QObject>
class Object : public QObject
{

View File

@ -5,11 +5,8 @@
* the LICENSE file in the root directory of this source tree.
*/
// QtPromise
#include <QtPromise>
// Qt
#include <QtConcurrent>
#include <QtPromise>
#include <QtTest>
using namespace QtPromise;