aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-12-17 22:33:15 +0800
committerLeonardo Alt <leo@ethereum.org>2018-12-17 22:33:15 +0800
commitb185d01a263fb40315cffe7789963eee89cb19eb (patch)
treea544eb0d49a6d48aeda19e0fe34bd21089fde1a6 /libsolidity/ast
parent332f914e4ef45f92c89beb87a8bb02ba5e85592b (diff)
downloaddexon-solidity-b185d01a263fb40315cffe7789963eee89cb19eb.tar.gz
dexon-solidity-b185d01a263fb40315cffe7789963eee89cb19eb.tar.zst
dexon-solidity-b185d01a263fb40315cffe7789963eee89cb19eb.zip
Sort includes in libsolidity/ast
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/AST.cpp3
-rw-r--r--libsolidity/ast/AST.h8
-rw-r--r--libsolidity/ast/ASTAnnotations.h2
-rw-r--r--libsolidity/ast/ASTForward.h2
-rw-r--r--libsolidity/ast/ASTJsonConverter.cpp5
-rw-r--r--libsolidity/ast/ASTJsonConverter.h7
-rw-r--r--libsolidity/ast/ASTPrinter.cpp5
-rw-r--r--libsolidity/ast/ASTPrinter.h2
-rw-r--r--libsolidity/ast/ASTVisitor.h4
-rw-r--r--libsolidity/ast/Types.cpp12
-rw-r--r--libsolidity/ast/Types.h10
11 files changed, 29 insertions, 31 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp
index 5779e4ad..f379d758 100644
--- a/libsolidity/ast/AST.cpp
+++ b/libsolidity/ast/AST.cpp
@@ -21,13 +21,12 @@
*/
#include <libsolidity/ast/AST.h>
+
#include <libsolidity/ast/ASTVisitor.h>
#include <libsolidity/ast/AST_accept.h>
-
#include <libdevcore/Keccak256.h>
#include <boost/algorithm/string.hpp>
-
#include <algorithm>
#include <functional>
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h
index 2f418b09..9ac065ea 100644
--- a/libsolidity/ast/AST.h
+++ b/libsolidity/ast/AST.h
@@ -22,24 +22,22 @@
#pragma once
-
-#include <libsolidity/parsing/Token.h>
#include <libsolidity/ast/ASTForward.h>
#include <libsolidity/ast/Types.h>
#include <libsolidity/ast/ASTAnnotations.h>
#include <libsolidity/ast/ASTEnums.h>
+#include <libsolidity/parsing/Token.h>
#include <liblangutil/SourceLocation.h>
#include <libevmasm/Instruction.h>
-
#include <libdevcore/FixedHash.h>
-#include <json/json.h>
#include <boost/noncopyable.hpp>
+#include <json/json.h>
+#include <memory>
#include <string>
#include <vector>
-#include <memory>
namespace yul
{
diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h
index e9cc905e..33893a4f 100644
--- a/libsolidity/ast/ASTAnnotations.h
+++ b/libsolidity/ast/ASTAnnotations.h
@@ -27,8 +27,8 @@
#include <map>
#include <memory>
-#include <vector>
#include <set>
+#include <vector>
namespace yul
{
diff --git a/libsolidity/ast/ASTForward.h b/libsolidity/ast/ASTForward.h
index 992fe4cd..f61acad9 100644
--- a/libsolidity/ast/ASTForward.h
+++ b/libsolidity/ast/ASTForward.h
@@ -22,8 +22,8 @@
#pragma once
-#include <string>
#include <memory>
+#include <string>
#include <vector>
// Forward-declare all AST node types
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp
index 1a2b3345..f8222598 100644
--- a/libsolidity/ast/ASTJsonConverter.cpp
+++ b/libsolidity/ast/ASTJsonConverter.cpp
@@ -20,11 +20,12 @@
*/
#include <libsolidity/ast/ASTJsonConverter.h>
-#include <boost/algorithm/string/join.hpp>
-#include <libdevcore/UTF8.h>
+
#include <libsolidity/ast/AST.h>
#include <libyul/AsmData.h>
#include <libyul/AsmPrinter.h>
+#include <libdevcore/UTF8.h>
+#include <boost/algorithm/string/join.hpp>
using namespace std;
using namespace langutil;
diff --git a/libsolidity/ast/ASTJsonConverter.h b/libsolidity/ast/ASTJsonConverter.h
index ef0a217a..770e3d9d 100644
--- a/libsolidity/ast/ASTJsonConverter.h
+++ b/libsolidity/ast/ASTJsonConverter.h
@@ -22,12 +22,13 @@
#pragma once
-#include <ostream>
-#include <stack>
+#include <libsolidity/ast/ASTAnnotations.h>
#include <libsolidity/ast/ASTVisitor.h>
#include <liblangutil/Exceptions.h>
-#include <libsolidity/ast/ASTAnnotations.h>
+
#include <json/json.h>
+#include <ostream>
+#include <stack>
namespace langutil
{
diff --git a/libsolidity/ast/ASTPrinter.cpp b/libsolidity/ast/ASTPrinter.cpp
index cdc6ae7d..d8bafa2c 100644
--- a/libsolidity/ast/ASTPrinter.cpp
+++ b/libsolidity/ast/ASTPrinter.cpp
@@ -21,11 +21,10 @@
*/
#include <libsolidity/ast/ASTPrinter.h>
-#include <libsolidity/ast/AST.h>
-
-#include <json/json.h>
+#include <libsolidity/ast/AST.h>
#include <boost/algorithm/string/join.hpp>
+#include <json/json.h>
using namespace std;
using namespace langutil;
diff --git a/libsolidity/ast/ASTPrinter.h b/libsolidity/ast/ASTPrinter.h
index de3bf8a2..d762af47 100644
--- a/libsolidity/ast/ASTPrinter.h
+++ b/libsolidity/ast/ASTPrinter.h
@@ -22,9 +22,9 @@
#pragma once
-#include <ostream>
#include <libsolidity/ast/ASTVisitor.h>
#include <libsolidity/interface/GasEstimator.h>
+#include <ostream>
namespace dev
{
diff --git a/libsolidity/ast/ASTVisitor.h b/libsolidity/ast/ASTVisitor.h
index 1a761032..8cb94e05 100644
--- a/libsolidity/ast/ASTVisitor.h
+++ b/libsolidity/ast/ASTVisitor.h
@@ -22,10 +22,10 @@
#pragma once
-#include <string>
+#include <libsolidity/ast/AST.h>
#include <functional>
+#include <string>
#include <vector>
-#include <libsolidity/ast/AST.h>
namespace dev
{
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index c35dde3c..cc978b4a 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -24,22 +24,22 @@
#include <libsolidity/ast/AST.h>
-#include <libdevcore/CommonIO.h>
+#include <libdevcore/Algorithms.h>
#include <libdevcore/CommonData.h>
+#include <libdevcore/CommonIO.h>
#include <libdevcore/Keccak256.h>
#include <libdevcore/UTF8.h>
-#include <libdevcore/Algorithms.h>
+#include <boost/algorithm/string.hpp>
+#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/join.hpp>
-#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/predicate.hpp>
-#include <boost/algorithm/string/classification.hpp>
+#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/range/adaptor/reversed.hpp>
-#include <boost/range/algorithm/copy.hpp>
#include <boost/range/adaptor/sliced.hpp>
#include <boost/range/adaptor/transformed.hpp>
-#include <boost/algorithm/string.hpp>
+#include <boost/range/algorithm/copy.hpp>
#include <limits>
diff --git a/libsolidity/ast/Types.h b/libsolidity/ast/Types.h
index 39157abe..ac1487b2 100644
--- a/libsolidity/ast/Types.h
+++ b/libsolidity/ast/Types.h
@@ -22,23 +22,23 @@
#pragma once
-#include <liblangutil/Exceptions.h>
-#include <libsolidity/ast/ASTForward.h>
#include <libsolidity/ast/ASTEnums.h>
+#include <libsolidity/ast/ASTForward.h>
#include <libsolidity/parsing/Token.h>
+#include <liblangutil/Exceptions.h>
#include <libdevcore/Common.h>
#include <libdevcore/CommonIO.h>
#include <libdevcore/Result.h>
+#include <boost/optional.hpp>
#include <boost/noncopyable.hpp>
#include <boost/rational.hpp>
-#include <boost/optional.hpp>
-#include <memory>
-#include <string>
#include <map>
+#include <memory>
#include <set>
+#include <string>
namespace dev
{