From 340ee4156d6c133a40ebb50284ab49ae0ebb7d69 Mon Sep 17 00:00:00 2001 From: Leonardo Alt Date: Mon, 17 Dec 2018 19:24:42 +0100 Subject: [PATCH] Sort includes in libsolidity/interface --- libsolidity/interface/ABI.cpp | 1 + libsolidity/interface/ABI.h | 4 ++-- libsolidity/interface/AssemblyStack.cpp | 14 ++++++-------- libsolidity/interface/AssemblyStack.h | 2 +- libsolidity/interface/CompilerStack.cpp | 17 +++++++++-------- libsolidity/interface/CompilerStack.h | 7 +++---- libsolidity/interface/GasEstimator.cpp | 19 +++++++++++-------- libsolidity/interface/GasEstimator.h | 6 +++--- libsolidity/interface/Natspec.cpp | 3 ++- libsolidity/interface/Natspec.h | 4 ++-- libsolidity/interface/ReadFile.h | 4 ++-- libsolidity/interface/StandardCompiler.cpp | 6 +++--- libsolidity/interface/Version.cpp | 5 +++-- libsolidity/interface/Version.h | 2 +- 14 files changed, 49 insertions(+), 45 deletions(-) diff --git a/libsolidity/interface/ABI.cpp b/libsolidity/interface/ABI.cpp index aefb34afa..0d27109e5 100644 --- a/libsolidity/interface/ABI.cpp +++ b/libsolidity/interface/ABI.cpp @@ -19,6 +19,7 @@ */ #include + #include using namespace std; diff --git a/libsolidity/interface/ABI.h b/libsolidity/interface/ABI.h index db70729db..082f3900f 100644 --- a/libsolidity/interface/ABI.h +++ b/libsolidity/interface/ABI.h @@ -20,9 +20,9 @@ #pragma once -#include -#include #include +#include +#include namespace dev { diff --git a/libsolidity/interface/AssemblyStack.cpp b/libsolidity/interface/AssemblyStack.cpp index b97e00ae5..69bceefca 100644 --- a/libsolidity/interface/AssemblyStack.cpp +++ b/libsolidity/interface/AssemblyStack.cpp @@ -23,20 +23,18 @@ #include #include - +#include #include -#include -#include + #include #include -#include -#include +#include +#include #include +#include #include +#include #include - -#include - #include using namespace std; diff --git a/libsolidity/interface/AssemblyStack.h b/libsolidity/interface/AssemblyStack.h index c8e3d35a7..01db6b617 100644 --- a/libsolidity/interface/AssemblyStack.h +++ b/libsolidity/interface/AssemblyStack.h @@ -29,8 +29,8 @@ #include -#include #include +#include namespace langutil { diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 1e6e23300..625a665d3 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -24,26 +24,27 @@ #include -#include -#include -#include -#include -#include #include #include +#include +#include #include #include -#include -#include -#include #include +#include +#include #include +#include #include + +#include #include #include #include #include #include +#include +#include #include diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index 2c7add3b0..740331702 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -34,15 +34,14 @@ #include #include +#include #include -#include - +#include +#include #include #include -#include #include -#include namespace langutil { diff --git a/libsolidity/interface/GasEstimator.cpp b/libsolidity/interface/GasEstimator.cpp index de6b2ce59..8ffcf9513 100644 --- a/libsolidity/interface/GasEstimator.cpp +++ b/libsolidity/interface/GasEstimator.cpp @@ -20,18 +20,21 @@ * Gas consumption estimator working alongside the AST. */ -#include "GasEstimator.h" -#include -#include -#include -#include -#include -#include -#include +#include + #include #include #include +#include +#include +#include +#include + +#include +#include +#include + using namespace std; using namespace dev; using namespace dev::eth; diff --git a/libsolidity/interface/GasEstimator.h b/libsolidity/interface/GasEstimator.h index 214a3e582..f40cffebd 100644 --- a/libsolidity/interface/GasEstimator.h +++ b/libsolidity/interface/GasEstimator.h @@ -24,12 +24,12 @@ #include -#include #include +#include -#include -#include #include +#include +#include namespace dev { diff --git a/libsolidity/interface/Natspec.cpp b/libsolidity/interface/Natspec.cpp index 11dde3499..7a89abaed 100644 --- a/libsolidity/interface/Natspec.cpp +++ b/libsolidity/interface/Natspec.cpp @@ -24,8 +24,9 @@ */ #include -#include + #include +#include using namespace std; using namespace dev; diff --git a/libsolidity/interface/Natspec.h b/libsolidity/interface/Natspec.h index 0be4dda28..fbaa6d4da 100644 --- a/libsolidity/interface/Natspec.h +++ b/libsolidity/interface/Natspec.h @@ -25,9 +25,9 @@ #pragma once -#include -#include #include +#include +#include namespace dev { diff --git a/libsolidity/interface/ReadFile.h b/libsolidity/interface/ReadFile.h index 7068629de..3b3d747ed 100644 --- a/libsolidity/interface/ReadFile.h +++ b/libsolidity/interface/ReadFile.h @@ -17,9 +17,9 @@ #pragma once -#include -#include #include +#include +#include namespace dev { diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index 21d213e7f..5be267e93 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -21,16 +21,16 @@ */ #include -#include + #include +#include #include #include #include -#include - #include #include +#include using namespace std; using namespace dev; diff --git a/libsolidity/interface/Version.cpp b/libsolidity/interface/Version.cpp index b785d5577..efd46d403 100644 --- a/libsolidity/interface/Version.cpp +++ b/libsolidity/interface/Version.cpp @@ -21,11 +21,12 @@ */ #include -#include + +#include #include #include -#include #include +#include using namespace dev; using namespace dev::solidity; diff --git a/libsolidity/interface/Version.h b/libsolidity/interface/Version.h index 24c3555d5..38d63ec68 100644 --- a/libsolidity/interface/Version.h +++ b/libsolidity/interface/Version.h @@ -22,8 +22,8 @@ #pragma once -#include #include +#include namespace dev {