diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-12-18 00:06:11 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-12-18 00:06:11 +0800 |
commit | ab7667627149e5793343b81af43f3fa1b328097d (patch) | |
tree | 7b282d939594c49ea2bb345f8129c17705deeeb1 | |
parent | 332f914e4ef45f92c89beb87a8bb02ba5e85592b (diff) | |
download | dexon-solidity-ab7667627149e5793343b81af43f3fa1b328097d.tar.gz dexon-solidity-ab7667627149e5793343b81af43f3fa1b328097d.tar.zst dexon-solidity-ab7667627149e5793343b81af43f3fa1b328097d.zip |
Sort includes in libsolidity/codegen
-rw-r--r-- | libsolidity/codegen/ABIFunctions.cpp | 1 | ||||
-rw-r--r-- | libsolidity/codegen/ABIFunctions.h | 7 | ||||
-rw-r--r-- | libsolidity/codegen/ArrayUtils.cpp | 8 | ||||
-rw-r--r-- | libsolidity/codegen/AsmCodeGen.h | 2 | ||||
-rw-r--r-- | libsolidity/codegen/Compiler.cpp | 3 | ||||
-rw-r--r-- | libsolidity/codegen/Compiler.h | 4 | ||||
-rw-r--r-- | libsolidity/codegen/CompilerContext.cpp | 11 | ||||
-rw-r--r-- | libsolidity/codegen/CompilerContext.h | 13 | ||||
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 4 | ||||
-rw-r--r-- | libsolidity/codegen/CompilerUtils.h | 2 | ||||
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 9 | ||||
-rw-r--r-- | libsolidity/codegen/ContractCompiler.h | 4 | ||||
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 18 | ||||
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.h | 11 | ||||
-rw-r--r-- | libsolidity/codegen/LValue.cpp | 5 | ||||
-rw-r--r-- | 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 <libsolidity/ast/AST.h> #include <libsolidity/codegen/CompilerUtils.h> - #include <libdevcore/Whiskers.h> #include <boost/algorithm/string/join.hpp> 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 <liblangutil/EVMVersion.h> - #include <libsolidity/ast/ASTForward.h> +#include <liblangutil/EVMVersion.h> -#include <vector> #include <functional> -#include <set> #include <map> +#include <set> +#include <vector> 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 <libsolidity/codegen/ArrayUtils.h> -#include <libevmasm/Instruction.h> + +#include <libsolidity/ast/Types.h> #include <libsolidity/codegen/CompilerContext.h> #include <libsolidity/codegen/CompilerUtils.h> -#include <libsolidity/ast/Types.h> -#include <liblangutil/Exceptions.h> #include <libsolidity/codegen/LValue.h> +#include <libevmasm/Instruction.h> +#include <liblangutil/Exceptions.h> + 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 <libyul/AsmAnalysis.h> #include <libyul/backends/evm/AbstractAssembly.h> - #include <liblangutil/SourceLocation.h> - #include <functional> 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 <libsolidity/codegen/Compiler.h> -#include <libevmasm/Assembly.h> + #include <libsolidity/codegen/ContractCompiler.h> +#include <libevmasm/Assembly.h> 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 <libsolidity/codegen/CompilerContext.h> #include <liblangutil/EVMVersion.h> - #include <libevmasm/Assembly.h> - -#include <ostream> #include <functional> +#include <ostream> 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 <libsolidity/codegen/CompilerContext.h> -#include <libsolidity/codegen/CompilerUtils.h> + #include <libsolidity/ast/AST.h> -#include <libsolidity/codegen/Compiler.h> #include <libsolidity/codegen/AsmCodeGen.h> +#include <libsolidity/codegen/Compiler.h> +#include <libsolidity/codegen/CompilerUtils.h> #include <libsolidity/interface/Version.h> -#include <liblangutil/SourceReferenceFormatter.h> + #include <libyul/AsmParser.h> #include <libyul/AsmAnalysis.h> #include <libyul/AsmAnalysisInfo.h> -#include <libyul/YulString.h> #include <libyul/backends/evm/EVMDialect.h> +#include <libyul/YulString.h> + #include <liblangutil/ErrorReporter.h> #include <liblangutil/Scanner.h> +#include <liblangutil/SourceReferenceFormatter.h> #include <boost/algorithm/string/replace.hpp> 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 <libsolidity/codegen/ABIFunctions.h> - -#include <liblangutil/EVMVersion.h> - +#include <libsolidity/ast/ASTAnnotations.h> #include <libsolidity/ast/ASTForward.h> #include <libsolidity/ast/Types.h> -#include <libsolidity/ast/ASTAnnotations.h> +#include <libsolidity/codegen/ABIFunctions.h> -#include <libevmasm/Instruction.h> #include <libevmasm/Assembly.h> - +#include <libevmasm/Instruction.h> +#include <liblangutil/EVMVersion.h> #include <libdevcore/Common.h> +#include <functional> #include <ostream> #include <stack> #include <queue> #include <utility> -#include <functional> 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 <libsolidity/codegen/CompilerUtils.h> #include <libsolidity/ast/AST.h> +#include <libsolidity/codegen/ABIFunctions.h> #include <libsolidity/codegen/ArrayUtils.h> #include <libsolidity/codegen/LValue.h> -#include <libsolidity/codegen/ABIFunctions.h> - #include <libevmasm/Instruction.h> - #include <libdevcore/Whiskers.h> 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 <libsolidity/codegen/CompilerContext.h> #include <libsolidity/ast/ASTForward.h> +#include <libsolidity/codegen/CompilerContext.h> 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 <libsolidity/ast/AST.h> +#include <libsolidity/codegen/AsmCodeGen.h> +#include <libsolidity/codegen/CompilerUtils.h> #include <libsolidity/codegen/ContractCompiler.h> #include <libsolidity/codegen/ExpressionCompiler.h> -#include <libsolidity/codegen/CompilerUtils.h> -#include <libsolidity/codegen/AsmCodeGen.h> -#include <libsolidity/ast/AST.h> -#include <liblangutil/ErrorReporter.h> #include <libevmasm/Instruction.h> #include <libevmasm/Assembly.h> #include <libevmasm/GasMeter.h> +#include <liblangutil/ErrorReporter.h> #include <boost/range/adaptor/reversed.hpp> - #include <algorithm> 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 <ostream> -#include <functional> #include <libsolidity/ast/ASTVisitor.h> #include <libsolidity/codegen/CompilerContext.h> #include <libevmasm/Assembly.h> +#include <functional> +#include <ostream> 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 <utility> -#include <numeric> -#include <boost/range/adaptor/reversed.hpp> -#include <boost/algorithm/string/replace.hpp> -#include <libdevcore/Common.h> -#include <libdevcore/Keccak256.h> -#include <libsolidity/ast/AST.h> #include <libsolidity/codegen/ExpressionCompiler.h> + +#include <libsolidity/ast/AST.h> #include <libsolidity/codegen/CompilerContext.h> #include <libsolidity/codegen/CompilerUtils.h> #include <libsolidity/codegen/LValue.h> -#include <libevmasm/GasMeter.h> +#include <libevmasm/GasMeter.h> +#include <libdevcore/Common.h> +#include <libdevcore/Keccak256.h> #include <libdevcore/Whiskers.h> +#include <boost/algorithm/string/replace.hpp> +#include <boost/range/adaptor/reversed.hpp> +#include <numeric> +#include <utility> + 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 <functional> -#include <memory> -#include <boost/noncopyable.hpp> -#include <libdevcore/Common.h> -#include <liblangutil/SourceLocation.h> #include <libsolidity/ast/ASTVisitor.h> #include <libsolidity/codegen/LValue.h> #include <liblangutil/Exceptions.h> +#include <liblangutil/SourceLocation.h> +#include <libdevcore/Common.h> + +#include <boost/noncopyable.hpp> +#include <functional> +#include <memory> 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 <libsolidity/codegen/LValue.h> -#include <libevmasm/Instruction.h> -#include <libsolidity/ast/Types.h> + #include <libsolidity/ast/AST.h> +#include <libsolidity/ast/Types.h> #include <libsolidity/codegen/CompilerUtils.h> +#include <libevmasm/Instruction.h> 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 <libsolidity/codegen/ArrayUtils.h> +#include <liblangutil/SourceLocation.h> #include <memory> #include <vector> -#include <liblangutil/SourceLocation.h> -#include <libsolidity/codegen/ArrayUtils.h> namespace dev { |