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/CursesDialog | |
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/CursesDialog')
-rw-r--r-- | Source/CursesDialog/ccmake.cxx | 15 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesBoolWidget.cxx | 4 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesCacheEntryComposite.cxx | 12 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesForm.h | 4 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesLabelWidget.h | 4 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesLongMessageForm.cxx | 6 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesLongMessageForm.h | 6 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 14 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.h | 10 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesOptionsWidget.h | 6 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesPathWidget.cxx | 4 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesPathWidget.h | 4 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesStringWidget.cxx | 4 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesStringWidget.h | 4 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesWidget.h | 4 |
15 files changed, 51 insertions, 50 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx index 567b4f4..9e9dfbd 100644 --- a/Source/CursesDialog/ccmake.cxx +++ b/Source/CursesDialog/ccmake.cxx @@ -1,6 +1,14 @@ /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ +#include <csignal> +#include <cstring> +#include <iostream> +#include <string> +#include <vector> + +#include "cmsys/Encoding.hxx" + #include "cmCursesForm.h" #include "cmCursesMainForm.h" #include "cmCursesStandardIncludes.h" @@ -10,13 +18,6 @@ #include "cmSystemTools.h" #include "cmake.h" -#include "cmsys/Encoding.hxx" -#include <csignal> -#include <cstring> -#include <iostream> -#include <string> -#include <vector> - static const char* cmDocumentationName[][2] = { { nullptr, " ccmake - Curses Interface for CMake." }, { nullptr, nullptr } diff --git a/Source/CursesDialog/cmCursesBoolWidget.cxx b/Source/CursesDialog/cmCursesBoolWidget.cxx index 80a5b5b..97b0811 100644 --- a/Source/CursesDialog/cmCursesBoolWidget.cxx +++ b/Source/CursesDialog/cmCursesBoolWidget.cxx @@ -2,11 +2,11 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCursesBoolWidget.h" +#include <string> + #include "cmCursesWidget.h" #include "cmStateTypes.h" -#include <string> - cmCursesBoolWidget::cmCursesBoolWidget(int width, int height, int left, int top) : cmCursesWidget(width, height, left, top) diff --git a/Source/CursesDialog/cmCursesCacheEntryComposite.cxx b/Source/CursesDialog/cmCursesCacheEntryComposite.cxx index 561784c..4d3131b 100644 --- a/Source/CursesDialog/cmCursesCacheEntryComposite.cxx +++ b/Source/CursesDialog/cmCursesCacheEntryComposite.cxx @@ -2,6 +2,12 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCursesCacheEntryComposite.h" +#include <cassert> +#include <utility> +#include <vector> + +#include <cm/memory> + #include "cmCursesBoolWidget.h" #include "cmCursesFilePathWidget.h" #include "cmCursesLabelWidget.h" @@ -14,12 +20,6 @@ #include "cmStringAlgorithms.h" #include "cmSystemTools.h" -#include <cm/memory> - -#include <cassert> -#include <utility> -#include <vector> - cmCursesCacheEntryComposite::cmCursesCacheEntryComposite( const std::string& key, int labelwidth, int entrywidth) : Key(key) diff --git a/Source/CursesDialog/cmCursesForm.h b/Source/CursesDialog/cmCursesForm.h index 7842905..e3626e6 100644 --- a/Source/CursesDialog/cmCursesForm.h +++ b/Source/CursesDialog/cmCursesForm.h @@ -5,11 +5,11 @@ #include "cmConfigure.h" // IWYU pragma: keep -#include "cmCursesStandardIncludes.h" +#include <string> #include "cmsys/FStream.hxx" -#include <string> +#include "cmCursesStandardIncludes.h" class cmCursesForm { diff --git a/Source/CursesDialog/cmCursesLabelWidget.h b/Source/CursesDialog/cmCursesLabelWidget.h index 2ee9cfc..9e75681 100644 --- a/Source/CursesDialog/cmCursesLabelWidget.h +++ b/Source/CursesDialog/cmCursesLabelWidget.h @@ -5,11 +5,11 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include <string> + #include "cmCursesStandardIncludes.h" #include "cmCursesWidget.h" -#include <string> - class cmCursesMainForm; class cmCursesLabelWidget : public cmCursesWidget diff --git a/Source/CursesDialog/cmCursesLongMessageForm.cxx b/Source/CursesDialog/cmCursesLongMessageForm.cxx index 028cc26..e2d8d06 100644 --- a/Source/CursesDialog/cmCursesLongMessageForm.cxx +++ b/Source/CursesDialog/cmCursesLongMessageForm.cxx @@ -2,14 +2,14 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCursesLongMessageForm.h" +#include <cstdio> +#include <cstring> + #include "cmCursesForm.h" #include "cmCursesMainForm.h" #include "cmCursesStandardIncludes.h" #include "cmVersion.h" -#include <cstdio> -#include <cstring> - inline int ctrl(int z) { return (z & 037); diff --git a/Source/CursesDialog/cmCursesLongMessageForm.h b/Source/CursesDialog/cmCursesLongMessageForm.h index 466b4e1..42f9c71 100644 --- a/Source/CursesDialog/cmCursesLongMessageForm.h +++ b/Source/CursesDialog/cmCursesLongMessageForm.h @@ -5,12 +5,12 @@ #include "cmConfigure.h" // IWYU pragma: keep -#include "cmCursesForm.h" -#include "cmCursesStandardIncludes.h" - #include <string> #include <vector> +#include "cmCursesForm.h" +#include "cmCursesStandardIncludes.h" + class cmCursesLongMessageForm : public cmCursesForm { public: diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 219771b..ad3debb 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -2,6 +2,13 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCursesMainForm.h" +#include <algorithm> +#include <cstdio> +#include <cstring> +#include <utility> + +#include <cm/memory> + #include "cmCursesCacheEntryComposite.h" #include "cmCursesDummyWidget.h" #include "cmCursesForm.h" @@ -17,13 +24,6 @@ #include "cmVersion.h" #include "cmake.h" -#include <cm/memory> - -#include <algorithm> -#include <cstdio> -#include <cstring> -#include <utility> - inline int ctrl(int z) { return (z & 037); diff --git a/Source/CursesDialog/cmCursesMainForm.h b/Source/CursesDialog/cmCursesMainForm.h index 48d1791..b8769b7 100644 --- a/Source/CursesDialog/cmCursesMainForm.h +++ b/Source/CursesDialog/cmCursesMainForm.h @@ -5,16 +5,16 @@ #include "cmConfigure.h" // IWYU pragma: keep -#include "cmCursesCacheEntryComposite.h" -#include "cmCursesForm.h" -#include "cmCursesStandardIncludes.h" -#include "cmStateTypes.h" - #include <cstddef> #include <memory> #include <string> #include <vector> +#include "cmCursesCacheEntryComposite.h" +#include "cmCursesForm.h" +#include "cmCursesStandardIncludes.h" +#include "cmStateTypes.h" + class cmake; /** \class cmCursesMainForm diff --git a/Source/CursesDialog/cmCursesOptionsWidget.h b/Source/CursesDialog/cmCursesOptionsWidget.h index 0128d6a..0de8e64 100644 --- a/Source/CursesDialog/cmCursesOptionsWidget.h +++ b/Source/CursesDialog/cmCursesOptionsWidget.h @@ -5,12 +5,12 @@ #include "cmConfigure.h" // IWYU pragma: keep -#include "cmCursesStandardIncludes.h" -#include "cmCursesWidget.h" - #include <string> #include <vector> +#include "cmCursesStandardIncludes.h" +#include "cmCursesWidget.h" + class cmCursesMainForm; class cmCursesOptionsWidget : public cmCursesWidget diff --git a/Source/CursesDialog/cmCursesPathWidget.cxx b/Source/CursesDialog/cmCursesPathWidget.cxx index 05c3279..bb3808e 100644 --- a/Source/CursesDialog/cmCursesPathWidget.cxx +++ b/Source/CursesDialog/cmCursesPathWidget.cxx @@ -2,13 +2,13 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCursesPathWidget.h" +#include <vector> + #include "cmCursesMainForm.h" #include "cmCursesStringWidget.h" #include "cmStateTypes.h" #include "cmSystemTools.h" -#include <vector> - cmCursesPathWidget::cmCursesPathWidget(int width, int height, int left, int top) : cmCursesStringWidget(width, height, left, top) diff --git a/Source/CursesDialog/cmCursesPathWidget.h b/Source/CursesDialog/cmCursesPathWidget.h index 1eace03..fb365e9 100644 --- a/Source/CursesDialog/cmCursesPathWidget.h +++ b/Source/CursesDialog/cmCursesPathWidget.h @@ -5,11 +5,11 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include <string> + #include "cmCursesStandardIncludes.h" #include "cmCursesStringWidget.h" -#include <string> - class cmCursesMainForm; class cmCursesPathWidget : public cmCursesStringWidget diff --git a/Source/CursesDialog/cmCursesStringWidget.cxx b/Source/CursesDialog/cmCursesStringWidget.cxx index d3a05e8..6296af2 100644 --- a/Source/CursesDialog/cmCursesStringWidget.cxx +++ b/Source/CursesDialog/cmCursesStringWidget.cxx @@ -2,14 +2,14 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCursesStringWidget.h" +#include <cstdio> + #include "cmCursesForm.h" #include "cmCursesMainForm.h" #include "cmCursesStandardIncludes.h" #include "cmCursesWidget.h" #include "cmStateTypes.h" -#include <cstdio> - inline int ctrl(int z) { return (z & 037); diff --git a/Source/CursesDialog/cmCursesStringWidget.h b/Source/CursesDialog/cmCursesStringWidget.h index a41f0e8..ce06c6d 100644 --- a/Source/CursesDialog/cmCursesStringWidget.h +++ b/Source/CursesDialog/cmCursesStringWidget.h @@ -5,11 +5,11 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include <string> + #include "cmCursesStandardIncludes.h" #include "cmCursesWidget.h" -#include <string> - class cmCursesMainForm; /** \class cmCursesStringWidget diff --git a/Source/CursesDialog/cmCursesWidget.h b/Source/CursesDialog/cmCursesWidget.h index f761f6d..9d03c6e 100644 --- a/Source/CursesDialog/cmCursesWidget.h +++ b/Source/CursesDialog/cmCursesWidget.h @@ -5,11 +5,11 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include <string> + #include "cmCursesStandardIncludes.h" #include "cmStateTypes.h" -#include <string> - class cmCursesMainForm; class cmCursesWidget |