From: Uwe Hermann Date: Tue, 28 Mar 2017 06:30:43 +0000 (+0200) Subject: Use alphabetical order for #includes. X-Git-Tag: pulseview-0.4.0~116 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=aca9aa834c742ba70f49d1ac3eb2d1e02e759416;p=pulseview.git Use alphabetical order for #includes. This patch was generated using clang-tidy: clang-tidy -checks="-*,llvm-include-order" -fix --- diff --git a/android/assetreader.cpp b/android/assetreader.cpp index 05160d6e..71aafae5 100644 --- a/android/assetreader.cpp +++ b/android/assetreader.cpp @@ -18,12 +18,15 @@ */ #include "assetreader.hpp" -#include + #include + #include #include #include +#include + using namespace pv; using std::string; diff --git a/pv/binding/binding.hpp b/pv/binding/binding.hpp index c4b1e9dd..e672ff17 100644 --- a/pv/binding/binding.hpp +++ b/pv/binding/binding.hpp @@ -26,8 +26,8 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS #include G_GNUC_END_IGNORE_DEPRECATIONS -#include #include +#include #include diff --git a/pv/binding/decoder.cpp b/pv/binding/decoder.cpp index 39bff52b..b2b4e4f7 100644 --- a/pv/binding/decoder.cpp +++ b/pv/binding/decoder.cpp @@ -23,8 +23,8 @@ #include -#include #include +#include #include #include #include diff --git a/pv/data/analogsegment.cpp b/pv/data/analogsegment.cpp index fb34cffc..1bd33876 100644 --- a/pv/data/analogsegment.cpp +++ b/pv/data/analogsegment.cpp @@ -20,9 +20,9 @@ #include #include -#include -#include #include +#include +#include #include diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 8fc32423..561e229d 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -25,10 +25,10 @@ #include "decoderstack.hpp" +#include +#include #include #include -#include -#include #include #include diff --git a/pv/data/logicsegment.cpp b/pv/data/logicsegment.cpp index cbaf54a4..b648f5d1 100644 --- a/pv/data/logicsegment.cpp +++ b/pv/data/logicsegment.cpp @@ -20,9 +20,9 @@ #include #include -#include -#include #include +#include +#include #include "logic.hpp" #include "logicsegment.hpp" diff --git a/pv/data/segment.hpp b/pv/data/segment.hpp index 0cc7e6f8..3305f4c8 100644 --- a/pv/data/segment.hpp +++ b/pv/data/segment.hpp @@ -23,8 +23,8 @@ #include "pv/util.hpp" -#include #include +#include #include using std::recursive_mutex; diff --git a/pv/data/signalbase.cpp b/pv/data/signalbase.cpp index 9894fdb4..6bcacd73 100644 --- a/pv/data/signalbase.cpp +++ b/pv/data/signalbase.cpp @@ -20,14 +20,14 @@ #include "analog.hpp" #include "analogsegment.hpp" +#include "decode/row.hpp" #include "logic.hpp" #include "logicsegment.hpp" #include "signalbase.hpp" #include "signaldata.hpp" -#include "decode/row.hpp" -#include #include +#include using std::dynamic_pointer_cast; using std::make_shared; diff --git a/pv/devicemanager.cpp b/pv/devicemanager.cpp index 883175c7..a51148b1 100644 --- a/pv/devicemanager.cpp +++ b/pv/devicemanager.cpp @@ -22,8 +22,8 @@ #include #include -#include #include +#include #include #include diff --git a/pv/dialogs/connect.cpp b/pv/dialogs/connect.cpp index 7a680cf7..911956af 100644 --- a/pv/dialogs/connect.cpp +++ b/pv/dialogs/connect.cpp @@ -21,8 +21,8 @@ #include -#include #include +#include #include #include "connect.hpp" diff --git a/pv/dialogs/connect.hpp b/pv/dialogs/connect.hpp index b35f5899..d9cf0a53 100644 --- a/pv/dialogs/connect.hpp +++ b/pv/dialogs/connect.hpp @@ -29,9 +29,9 @@ #include #include #include -#include #include #include +#include #include using std::shared_ptr; diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 7e48e5a9..5c399e43 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -21,11 +21,11 @@ #include #endif -#include #include -#include -#include +#include #include +#include +#include #include #include @@ -34,17 +34,17 @@ #include #include #include -#include #include +#include #include "mainwindow.hpp" #include "devicemanager.hpp" -#include "globalsettings.hpp" -#include "util.hpp" #include "devices/hardwaredevice.hpp" #include "dialogs/settings.hpp" +#include "globalsettings.hpp" #include "toolbars/mainbar.hpp" +#include "util.hpp" #include "view/view.hpp" #include "views/trace/standardbar.hpp" diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index e3e98e36..a0a6d337 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -25,10 +25,10 @@ #include #include +#include #include -#include #include -#include +#include #include "session.hpp" #include "views/viewbase.hpp" diff --git a/pv/prop/int.cpp b/pv/prop/int.cpp index 415ee866..f53d0966 100644 --- a/pv/prop/int.cpp +++ b/pv/prop/int.cpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#include #include +#include #include diff --git a/pv/prop/property.hpp b/pv/prop/property.hpp index 7e547dec..765cbb50 100644 --- a/pv/prop/property.hpp +++ b/pv/prop/property.hpp @@ -27,6 +27,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS G_GNUC_END_IGNORE_DEPRECATIONS #include + #include #include diff --git a/pv/session.cpp b/pv/session.cpp index d00ff97a..d7041d8b 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -31,16 +31,16 @@ #include -#include "session.hpp" #include "devicemanager.hpp" +#include "session.hpp" #include "data/analog.hpp" #include "data/analogsegment.hpp" +#include "data/decode/decoder.hpp" #include "data/decoderstack.hpp" #include "data/logic.hpp" #include "data/logicsegment.hpp" #include "data/signalbase.hpp" -#include "data/decode/decoder.hpp" #include "devices/hardwaredevice.hpp" #include "devices/inputfile.hpp" diff --git a/pv/storesession.cpp b/pv/storesession.cpp index a5850060..db766179 100644 --- a/pv/storesession.cpp +++ b/pv/storesession.cpp @@ -27,14 +27,14 @@ #include "storesession.hpp" -#include -#include #include #include #include #include #include +#include #include +#include #include diff --git a/pv/storesession.hpp b/pv/storesession.hpp index b6ead66d..f0c8de77 100644 --- a/pv/storesession.hpp +++ b/pv/storesession.hpp @@ -20,8 +20,8 @@ #ifndef PULSEVIEW_PV_STORESESSION_HPP #define PULSEVIEW_PV_STORESESSION_HPP -#include #include +#include #include #include #include diff --git a/pv/strnatcmp.hpp b/pv/strnatcmp.hpp index 1d8f5a24..eaa73608 100644 --- a/pv/strnatcmp.hpp +++ b/pv/strnatcmp.hpp @@ -27,8 +27,8 @@ #ifndef PULSEVIEW_PV_STRNATCMP_HPP #define PULSEVIEW_PV_STRNATCMP_HPP -#include /* size_t */ #include +#include /* size_t */ #include using std::string; diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index 838fefca..333f222a 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -43,8 +43,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/pv/util.cpp b/pv/util.cpp index 7d711f19..8f2d7d25 100644 --- a/pv/util.cpp +++ b/pv/util.cpp @@ -21,12 +21,12 @@ #include -#include #include +#include #include -#include #include +#include using std::fixed; using std::max; diff --git a/pv/view/analogsignal.cpp b/pv/view/analogsignal.cpp index 4479885d..a15861c8 100644 --- a/pv/view/analogsignal.cpp +++ b/pv/view/analogsignal.cpp @@ -40,9 +40,9 @@ #include "pv/data/logic.hpp" #include "pv/data/logicsegment.hpp" #include "pv/data/signalbase.hpp" -#include "pv/view/view.hpp" -#include "pv/view/logicsignal.hpp" #include "pv/globalsettings.hpp" +#include "pv/view/logicsignal.hpp" +#include "pv/view/view.hpp" #include diff --git a/pv/view/cursor.cpp b/pv/view/cursor.cpp index d845817d..408eb311 100644 --- a/pv/view/cursor.cpp +++ b/pv/view/cursor.cpp @@ -19,9 +19,9 @@ #include "cursor.hpp" +#include "pv/util.hpp" #include "ruler.hpp" #include "view.hpp" -#include "pv/util.hpp" #include #include diff --git a/pv/view/cursorpair.cpp b/pv/view/cursorpair.cpp index e0e3de65..3259524c 100644 --- a/pv/view/cursorpair.cpp +++ b/pv/view/cursorpair.cpp @@ -19,12 +19,12 @@ #include "cursorpair.hpp" +#include "pv/util.hpp" #include "ruler.hpp" #include "view.hpp" -#include "pv/util.hpp" -#include #include +#include using std::max; using std::make_pair; diff --git a/pv/view/decodetrace.cpp b/pv/view/decodetrace.cpp index 55b5f575..0a624c31 100644 --- a/pv/view/decodetrace.cpp +++ b/pv/view/decodetrace.cpp @@ -40,13 +40,13 @@ extern "C" { #include "decodetrace.hpp" -#include -#include -#include +#include #include +#include #include #include -#include +#include +#include #include #include #include diff --git a/pv/view/decodetrace.hpp b/pv/view/decodetrace.hpp index 9f575524..648bb04a 100644 --- a/pv/view/decodetrace.hpp +++ b/pv/view/decodetrace.hpp @@ -30,8 +30,8 @@ #include #include -#include #include +#include using std::list; using std::map; diff --git a/pv/view/header.cpp b/pv/view/header.cpp index 0e9445ea..e2ccfedc 100644 --- a/pv/view/header.cpp +++ b/pv/view/header.cpp @@ -23,8 +23,8 @@ #include "signal.hpp" #include "tracegroup.hpp" -#include #include +#include #include diff --git a/pv/view/logicsignal.cpp b/pv/view/logicsignal.cpp index 9c8f6b31..86d45a43 100644 --- a/pv/view/logicsignal.cpp +++ b/pv/view/logicsignal.cpp @@ -31,14 +31,14 @@ #include "logicsignal.hpp" #include "view.hpp" -#include -#include -#include #include #include #include -#include +#include +#include #include +#include +#include #include diff --git a/pv/view/timemarker.cpp b/pv/view/timemarker.cpp index 3014b4a6..4874eb23 100644 --- a/pv/view/timemarker.cpp +++ b/pv/view/timemarker.cpp @@ -23,12 +23,12 @@ #include "timemarker.hpp" -#include "view.hpp" #include "pv/widgets/timestampspinbox.hpp" +#include "view.hpp" #include -#include #include +#include #include #include diff --git a/pv/view/tracegroup.cpp b/pv/view/tracegroup.cpp index 5b59eab9..265bc275 100644 --- a/pv/view/tracegroup.cpp +++ b/pv/view/tracegroup.cpp @@ -19,8 +19,8 @@ #include -#include #include +#include #include #include diff --git a/pv/view/tracetreeitemowner.cpp b/pv/view/tracetreeitemowner.cpp index 31f4cb83..e6260885 100644 --- a/pv/view/tracetreeitemowner.cpp +++ b/pv/view/tracetreeitemowner.cpp @@ -20,8 +20,8 @@ #include #include "tracetreeitem.hpp" -#include "tracetreeitemowner.hpp" #include "trace.hpp" +#include "tracetreeitemowner.hpp" using std::find; using std::make_pair; diff --git a/pv/view/view.cpp b/pv/view/view.cpp index dc545bab..0e3fa98f 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -36,9 +36,9 @@ #include #include -#include #include #include +#include #include #include @@ -54,11 +54,11 @@ #include "view.hpp" #include "viewport.hpp" -#include "pv/session.hpp" -#include "pv/globalsettings.hpp" -#include "pv/devices/device.hpp" #include "pv/data/logic.hpp" #include "pv/data/logicsegment.hpp" +#include "pv/devices/device.hpp" +#include "pv/globalsettings.hpp" +#include "pv/session.hpp" #include "pv/util.hpp" #ifdef ENABLE_DECODE diff --git a/pv/view/view.hpp b/pv/view/view.hpp index ee62d113..05d9d601 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -32,8 +32,8 @@ #include #include -#include #include +#include #include "cursorpair.hpp" #include "flag.hpp" diff --git a/pv/view/viewitemowner.cpp b/pv/view/viewitemowner.cpp index 7b32d92c..94876590 100644 --- a/pv/view/viewitemowner.cpp +++ b/pv/view/viewitemowner.cpp @@ -20,8 +20,8 @@ #include #include "tracetreeitem.hpp" -#include "tracetreeitemowner.hpp" #include "trace.hpp" +#include "tracetreeitemowner.hpp" namespace pv { namespace views { diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp index 4b5fe245..d81befae 100644 --- a/pv/view/viewport.cpp +++ b/pv/view/viewport.cpp @@ -17,9 +17,9 @@ * along with this program; if not, see . */ +#include #include #include -#include #include #include "signal.hpp" diff --git a/pv/widgets/popup.cpp b/pv/widgets/popup.cpp index 6d211c98..f1486e00 100644 --- a/pv/widgets/popup.cpp +++ b/pv/widgets/popup.cpp @@ -20,10 +20,10 @@ #include #include -#include #include #include #include +#include #include "popup.hpp" diff --git a/pv/widgets/sweeptimingwidget.cpp b/pv/widgets/sweeptimingwidget.cpp index ea77c0fe..b4943225 100644 --- a/pv/widgets/sweeptimingwidget.cpp +++ b/pv/widgets/sweeptimingwidget.cpp @@ -19,9 +19,9 @@ #include "sweeptimingwidget.hpp" +#include #include #include -#include #include diff --git a/pv/widgets/wellarray.cpp b/pv/widgets/wellarray.cpp index 4e3382ba..433a7f5e 100644 --- a/pv/widgets/wellarray.cpp +++ b/pv/widgets/wellarray.cpp @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#include #include +#include #include #include diff --git a/test/test.cpp b/test/test.cpp index c2a50313..1f078ab4 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -18,8 +18,8 @@ */ #define BOOST_TEST_MAIN -#include #include "test/test.hpp" +#include using std::ostream; diff --git a/test/view/ruler.cpp b/test/view/ruler.cpp index 34bf20b7..5230e240 100644 --- a/test/view/ruler.cpp +++ b/test/view/ruler.cpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#include #include +#include #include "pv/view/ruler.hpp" #include "test/test.hpp"