diff options
author | Kitware Robot <kwrobot@kitware.com> | 2019-09-30 14:46:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-01 16:26:36 (GMT) |
commit | ed98209ddc8d5e9f5b20cd010c69a25d553b2654 (patch) | |
tree | bacc6e66e49837c6bbe02996caf360e1e9fbc211 /Source/QtDialog | |
parent | 185fe49f29f6632a3c26c376fcb4934e91092ff7 (diff) | |
download | CMake-ed98209ddc8d5e9f5b20cd010c69a25d553b2654.zip CMake-ed98209ddc8d5e9f5b20cd010c69a25d553b2654.tar.gz CMake-ed98209ddc8d5e9f5b20cd010c69a25d553b2654.tar.bz2 |
Revise include order using clang-format-6.0
Run the `clang-format.bash` script to update our C and C++ code to a new
include order `.clang-format`. Use `clang-format` version 6.0.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/AddCacheEntry.h | 1 | ||||
-rw-r--r-- | Source/QtDialog/CMakeSetup.cxx | 29 | ||||
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 10 | ||||
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.h | 4 | ||||
-rw-r--r-- | Source/QtDialog/Compilers.h | 4 | ||||
-rw-r--r-- | Source/QtDialog/FirstConfigure.cxx | 7 | ||||
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 3 | ||||
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.h | 1 | ||||
-rw-r--r-- | Source/QtDialog/QCMakeWidgets.cxx | 3 | ||||
-rw-r--r-- | Source/QtDialog/RegexExplorer.h | 6 | ||||
-rw-r--r-- | Source/QtDialog/WarningMessagesDialog.h | 2 |
11 files changed, 38 insertions, 32 deletions
diff --git a/Source/QtDialog/AddCacheEntry.h b/Source/QtDialog/AddCacheEntry.h index 65e11c0..e7a60dd 100644 --- a/Source/QtDialog/AddCacheEntry.h +++ b/Source/QtDialog/AddCacheEntry.h @@ -4,7 +4,6 @@ #define AddCacheEntry_h #include "QCMake.h" - #include <QCheckBox> #include <QStringList> #include <QWidget> diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index ad18cfe..ee81a7d 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -1,17 +1,8 @@ /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ -#include "QCMake.h" // include to disable MS warnings +#include <iostream> -#include "CMakeSetupDialog.h" -#include "cmAlgorithms.h" -#include "cmDocumentation.h" -#include "cmDocumentationEntry.h" -#include "cmStringAlgorithms.h" -#include "cmVersion.h" -#include "cmake.h" -#include "cmsys/CommandLineArguments.hxx" -#include "cmsys/Encoding.hxx" -#include "cmsys/SystemTools.hxx" +#include "QCMake.h" // include to disable MS warnings #include <QApplication> #include <QDir> #include <QLocale> @@ -19,9 +10,19 @@ #include <QTextCodec> #include <QTranslator> #include <QtPlugin> -#include <iostream> +#include "cmsys/CommandLineArguments.hxx" +#include "cmsys/Encoding.hxx" +#include "cmsys/SystemTools.hxx" + +#include "CMakeSetupDialog.h" +#include "cmAlgorithms.h" +#include "cmDocumentation.h" +#include "cmDocumentationEntry.h" +#include "cmStringAlgorithms.h" #include "cmSystemTools.h" // IWYU pragma: keep +#include "cmVersion.h" +#include "cmake.h" static const char* cmDocumentationName[][2] = { { nullptr, " cmake-gui - CMake GUI." }, @@ -228,10 +229,12 @@ int main(int argc, char** argv) } #if defined(Q_OS_MAC) -# include "cm_sys_stat.h" # include <cerrno> # include <cstring> + # include <unistd.h> + +# include "cm_sys_stat.h" static bool cmOSXInstall(std::string const& dir, std::string const& tool) { if (tool.empty()) { diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index e98cdcf..436a904 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -26,15 +26,17 @@ # include <QWinTaskbarProgress> #endif -#include "AddCacheEntry.h" -#include "FirstConfigure.h" #include "QCMake.h" #include "QCMakeCacheView.h" -#include "RegexExplorer.h" -#include "WarningMessagesDialog.h" + #include "cmSystemTools.h" #include "cmVersion.h" +#include "AddCacheEntry.h" +#include "FirstConfigure.h" +#include "RegexExplorer.h" +#include "WarningMessagesDialog.h" + QCMakeThread::QCMakeThread(QObject* p) : QThread(p) , CMakeInstance(nullptr) diff --git a/Source/QtDialog/CMakeSetupDialog.h b/Source/QtDialog/CMakeSetupDialog.h index 39c1053..f23aee6 100644 --- a/Source/QtDialog/CMakeSetupDialog.h +++ b/Source/QtDialog/CMakeSetupDialog.h @@ -4,12 +4,12 @@ #define CMakeSetupDialog_h #include "QCMake.h" - -#include "ui_CMakeSetupDialog.h" #include <QEventLoop> #include <QMainWindow> #include <QThread> +#include "ui_CMakeSetupDialog.h" + class QCMakeThread; class CMakeCacheModel; class QProgressBar; diff --git a/Source/QtDialog/Compilers.h b/Source/QtDialog/Compilers.h index 96770e3..931c935 100644 --- a/Source/QtDialog/Compilers.h +++ b/Source/QtDialog/Compilers.h @@ -5,10 +5,10 @@ #include "cmConfigure.h" // IWYU pragma: keep -#include <QWidget> - #include <ui_Compilers.h> +#include <QWidget> + class Compilers : public QWidget , public Ui::Compilers diff --git a/Source/QtDialog/FirstConfigure.cxx b/Source/QtDialog/FirstConfigure.cxx index 0f09d7c..ca28b19 100644 --- a/Source/QtDialog/FirstConfigure.cxx +++ b/Source/QtDialog/FirstConfigure.cxx @@ -1,14 +1,15 @@ #include "FirstConfigure.h" -#include "Compilers.h" -#include "cmStringAlgorithms.h" - #include <QComboBox> #include <QRadioButton> #include <QSettings> #include <QVBoxLayout> +#include "cmStringAlgorithms.h" + +#include "Compilers.h" + StartCompilerSetup::StartCompilerSetup(QWidget* p) : QWizardPage(p) { diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 5e8636a..3e6a49e 100644 --- a/Source/QtDialog/QCMakeCacheView.cxx +++ b/Source/QtDialog/QCMakeCacheView.cxx @@ -2,6 +2,7 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "QCMakeCacheView.h" +#include "QCMakeWidgets.h" #include <QApplication> #include <QEvent> #include <QHBoxLayout> @@ -11,8 +12,6 @@ #include <QSortFilterProxyModel> #include <QStyle> -#include "QCMakeWidgets.h" - // filter for searches class QCMakeSearchFilter : public QSortFilterProxyModel { diff --git a/Source/QtDialog/QCMakeCacheView.h b/Source/QtDialog/QCMakeCacheView.h index c1debf5..bea1965 100644 --- a/Source/QtDialog/QCMakeCacheView.h +++ b/Source/QtDialog/QCMakeCacheView.h @@ -4,7 +4,6 @@ #define QCMakeCacheView_h #include "QCMake.h" - #include <QItemDelegate> #include <QSet> #include <QStandardItemModel> diff --git a/Source/QtDialog/QCMakeWidgets.cxx b/Source/QtDialog/QCMakeWidgets.cxx index eab418f..332a770 100644 --- a/Source/QtDialog/QCMakeWidgets.cxx +++ b/Source/QtDialog/QCMakeWidgets.cxx @@ -2,12 +2,13 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "QCMakeWidgets.h" +#include <utility> + #include <QDirModel> #include <QFileDialog> #include <QFileInfo> #include <QResizeEvent> #include <QToolButton> -#include <utility> QCMakeFileEditor::QCMakeFileEditor(QWidget* p, QString var) : QLineEdit(p) diff --git a/Source/QtDialog/RegexExplorer.h b/Source/QtDialog/RegexExplorer.h index c7dbb76..1a1d770 100644 --- a/Source/QtDialog/RegexExplorer.h +++ b/Source/QtDialog/RegexExplorer.h @@ -3,10 +3,12 @@ #ifndef RegexExplorer_h #define RegexExplorer_h -#include "cmsys/RegularExpression.hxx" -#include <QDialog> #include <string> +#include <QDialog> + +#include "cmsys/RegularExpression.hxx" + #include "ui_RegexExplorer.h" class QString; diff --git a/Source/QtDialog/WarningMessagesDialog.h b/Source/QtDialog/WarningMessagesDialog.h index 9b29ad6..f209dbd 100644 --- a/Source/QtDialog/WarningMessagesDialog.h +++ b/Source/QtDialog/WarningMessagesDialog.h @@ -3,10 +3,10 @@ #ifndef WarningMessagesDialog_h #define WarningMessagesDialog_h +#include "QCMake.h" #include <QDialog> #include <QWidget> -#include "QCMake.h" #include "ui_WarningMessagesDialog.h" /** |