From ab7667627149e5793343b81af43f3fa1b328097d Mon Sep 17 00:00:00 2001 From: Leonardo Alt Date: Mon, 17 Dec 2018 17:06:11 +0100 Subject: Sort includes in libsolidity/codegen --- libsolidity/codegen/ABIFunctions.cpp | 1 - libsolidity/codegen/ABIFunctions.h | 7 +++---- libsolidity/codegen/ArrayUtils.cpp | 8 +++++--- libsolidity/codegen/AsmCodeGen.h | 2 -- libsolidity/codegen/Compiler.cpp | 3 ++- libsolidity/codegen/Compiler.h | 4 +--- libsolidity/codegen/CompilerContext.cpp | 11 +++++++---- libsolidity/codegen/CompilerContext.h | 13 +++++-------- libsolidity/codegen/CompilerUtils.cpp | 4 +--- libsolidity/codegen/CompilerUtils.h | 2 +- libsolidity/codegen/ContractCompiler.cpp | 9 ++++----- libsolidity/codegen/ContractCompiler.h | 4 ++-- libsolidity/codegen/ExpressionCompiler.cpp | 18 ++++++++++-------- libsolidity/codegen/ExpressionCompiler.h | 11 ++++++----- libsolidity/codegen/LValue.cpp | 5 +++-- libsolidity/codegen/LValue.h | 4 ++-- 16 files changed, 52 insertions(+), 54 deletions(-) diff --git a/libsolidity/codegen/ABIFunctions.cpp b/libsolidity/codegen/ABIFunctions.cpp index 5000131c..c1ab03e3 100644 --- a/libsolidity/codegen/ABIFunctions.cpp +++ b/libsolidity/codegen/ABIFunctions.cpp @@ -24,7 +24,6 @@ #include #include - #include #include diff --git a/libsolidity/codegen/ABIFunctions.h b/libsolidity/codegen/ABIFunctions.h index d2132258..1e0cf7fa 100644 --- a/libsolidity/codegen/ABIFunctions.h +++ b/libsolidity/codegen/ABIFunctions.h @@ -22,14 +22,13 @@ #pragma once -#include - #include +#include -#include #include -#include #include +#include +#include namespace dev { namespace solidity { diff --git a/libsolidity/codegen/ArrayUtils.cpp b/libsolidity/codegen/ArrayUtils.cpp index 4878f9f3..f9678f7c 100644 --- a/libsolidity/codegen/ArrayUtils.cpp +++ b/libsolidity/codegen/ArrayUtils.cpp @@ -21,13 +21,15 @@ */ #include -#include + +#include #include #include -#include -#include #include +#include +#include + using namespace std; using namespace dev; using namespace langutil; diff --git a/libsolidity/codegen/AsmCodeGen.h b/libsolidity/codegen/AsmCodeGen.h index 303d32ee..516b0a36 100644 --- a/libsolidity/codegen/AsmCodeGen.h +++ b/libsolidity/codegen/AsmCodeGen.h @@ -22,9 +22,7 @@ #include #include - #include - #include namespace yul diff --git a/libsolidity/codegen/Compiler.cpp b/libsolidity/codegen/Compiler.cpp index fe57cff6..a22e6e9d 100644 --- a/libsolidity/codegen/Compiler.cpp +++ b/libsolidity/codegen/Compiler.cpp @@ -21,8 +21,9 @@ */ #include -#include + #include +#include using namespace std; using namespace dev; diff --git a/libsolidity/codegen/Compiler.h b/libsolidity/codegen/Compiler.h index 48d9e9d6..784d7f8c 100644 --- a/libsolidity/codegen/Compiler.h +++ b/libsolidity/codegen/Compiler.h @@ -24,11 +24,9 @@ #include #include - #include - -#include #include +#include namespace dev { namespace solidity { diff --git a/libsolidity/codegen/CompilerContext.cpp b/libsolidity/codegen/CompilerContext.cpp index 0b018e1e..be681b2e 100644 --- a/libsolidity/codegen/CompilerContext.cpp +++ b/libsolidity/codegen/CompilerContext.cpp @@ -21,19 +21,22 @@ */ #include -#include + #include -#include #include +#include +#include #include -#include + #include #include #include -#include #include +#include + #include #include +#include #include diff --git a/libsolidity/codegen/CompilerContext.h b/libsolidity/codegen/CompilerContext.h index 02369813..dedcd95f 100644 --- a/libsolidity/codegen/CompilerContext.h +++ b/libsolidity/codegen/CompilerContext.h @@ -22,24 +22,21 @@ #pragma once -#include - -#include - +#include #include #include -#include +#include -#include #include - +#include +#include #include +#include #include #include #include #include -#include namespace dev { namespace solidity { diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index 259f1620..bbc703c7 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -23,12 +23,10 @@ #include #include +#include #include #include -#include - #include - #include using namespace std; diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h index 5f7dce22..7e4f47ba 100644 --- a/libsolidity/codegen/CompilerUtils.h +++ b/libsolidity/codegen/CompilerUtils.h @@ -22,8 +22,8 @@ #pragma once -#include #include +#include namespace dev { namespace solidity { diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index 67876721..16c90b60 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -20,19 +20,18 @@ * Solidity compiler. */ +#include +#include +#include #include #include -#include -#include -#include -#include #include #include #include +#include #include - #include using namespace std; diff --git a/libsolidity/codegen/ContractCompiler.h b/libsolidity/codegen/ContractCompiler.h index 266ace0b..40871f0d 100644 --- a/libsolidity/codegen/ContractCompiler.h +++ b/libsolidity/codegen/ContractCompiler.h @@ -22,11 +22,11 @@ #pragma once -#include -#include #include #include #include +#include +#include namespace dev { namespace solidity { diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 121585d9..46359f2b 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -20,21 +20,23 @@ * Solidity AST to EVM bytecode compiler for expressions. */ -#include -#include -#include -#include -#include -#include -#include #include + +#include #include #include #include -#include +#include +#include +#include #include +#include +#include +#include +#include + using namespace std; using namespace langutil; diff --git a/libsolidity/codegen/ExpressionCompiler.h b/libsolidity/codegen/ExpressionCompiler.h index e9345ece..4a6e43ff 100644 --- a/libsolidity/codegen/ExpressionCompiler.h +++ b/libsolidity/codegen/ExpressionCompiler.h @@ -23,14 +23,15 @@ #pragma once -#include -#include -#include -#include -#include #include #include #include +#include +#include + +#include +#include +#include namespace dev { namespace eth diff --git a/libsolidity/codegen/LValue.cpp b/libsolidity/codegen/LValue.cpp index 6d71d36f..70dbee81 100644 --- a/libsolidity/codegen/LValue.cpp +++ b/libsolidity/codegen/LValue.cpp @@ -21,10 +21,11 @@ */ #include -#include -#include + #include +#include #include +#include using namespace std; using namespace dev; diff --git a/libsolidity/codegen/LValue.h b/libsolidity/codegen/LValue.h index d854857b..3b44597f 100644 --- a/libsolidity/codegen/LValue.h +++ b/libsolidity/codegen/LValue.h @@ -22,10 +22,10 @@ #pragma once +#include +#include #include #include -#include -#include namespace dev { -- cgit