From b185d01a263fb40315cffe7789963eee89cb19eb Mon Sep 17 00:00:00 2001 From: Leonardo Alt Date: Mon, 17 Dec 2018 15:33:15 +0100 Subject: Sort includes in libsolidity/ast --- libsolidity/ast/AST.cpp | 3 +-- libsolidity/ast/AST.h | 8 +++----- libsolidity/ast/ASTAnnotations.h | 2 +- libsolidity/ast/ASTForward.h | 2 +- libsolidity/ast/ASTJsonConverter.cpp | 5 +++-- libsolidity/ast/ASTJsonConverter.h | 7 ++++--- libsolidity/ast/ASTPrinter.cpp | 5 ++--- libsolidity/ast/ASTPrinter.h | 2 +- libsolidity/ast/ASTVisitor.h | 4 ++-- libsolidity/ast/Types.cpp | 12 ++++++------ libsolidity/ast/Types.h | 10 +++++----- 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 + #include #include - #include #include - #include #include 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 #include #include #include #include +#include #include #include - #include -#include #include +#include +#include #include #include -#include 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 #include -#include #include +#include 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 #include +#include #include // 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 -#include -#include + #include #include #include +#include +#include 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 -#include +#include #include #include -#include + #include +#include +#include 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 -#include - -#include +#include #include +#include 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 #include #include +#include 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 +#include #include +#include #include -#include 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 -#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/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 -#include #include +#include #include +#include #include #include #include +#include #include #include -#include -#include -#include #include +#include #include +#include namespace dev { -- cgit v1.2.3