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 "qpromiseglobal.h"
#include "qpromiseresolver.h" #include "qpromiseresolver.h"
// Qt #include <QtCore/QExplicitlySharedDataPointer>
#include <QExplicitlySharedDataPointer>
// C++ Standard Library
#include <chrono> #include <chrono>
namespace QtPromise { namespace QtPromise {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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