diff options
Diffstat (limited to 'libsolidity')
22 files changed, 44 insertions, 41 deletions
diff --git a/libsolidity/analysis/ConstantEvaluator.cpp b/libsolidity/analysis/ConstantEvaluator.cpp index 26d9584b..e637795a 100644 --- a/libsolidity/analysis/ConstantEvaluator.cpp +++ b/libsolidity/analysis/ConstantEvaluator.cpp @@ -21,6 +21,7 @@ */ #include <libsolidity/analysis/ConstantEvaluator.h> + #include <libsolidity/ast/AST.h> #include <liblangutil/ErrorReporter.h> diff --git a/libsolidity/analysis/ContractLevelChecker.cpp b/libsolidity/analysis/ContractLevelChecker.cpp index 526caff9..96b9611e 100644 --- a/libsolidity/analysis/ContractLevelChecker.cpp +++ b/libsolidity/analysis/ContractLevelChecker.cpp @@ -20,10 +20,9 @@ */ #include <libsolidity/analysis/ContractLevelChecker.h> -#include <libsolidity/ast/AST.h> +#include <libsolidity/ast/AST.h> #include <liblangutil/ErrorReporter.h> - #include <boost/range/adaptor/reversed.hpp> diff --git a/libsolidity/analysis/ContractLevelChecker.h b/libsolidity/analysis/ContractLevelChecker.h index 15cbf45d..d754687a 100644 --- a/libsolidity/analysis/ContractLevelChecker.h +++ b/libsolidity/analysis/ContractLevelChecker.h @@ -22,7 +22,6 @@ #pragma once #include <libsolidity/ast/ASTForward.h> - #include <map> namespace langutil diff --git a/libsolidity/analysis/ControlFlowAnalyzer.cpp b/libsolidity/analysis/ControlFlowAnalyzer.cpp index a7e1ed97..3adf6318 100644 --- a/libsolidity/analysis/ControlFlowAnalyzer.cpp +++ b/libsolidity/analysis/ControlFlowAnalyzer.cpp @@ -16,6 +16,7 @@ */ #include <libsolidity/analysis/ControlFlowAnalyzer.h> + #include <liblangutil/SourceLocation.h> #include <boost/range/algorithm/sort.hpp> diff --git a/libsolidity/analysis/ControlFlowAnalyzer.h b/libsolidity/analysis/ControlFlowAnalyzer.h index 859d826a..7761817a 100644 --- a/libsolidity/analysis/ControlFlowAnalyzer.h +++ b/libsolidity/analysis/ControlFlowAnalyzer.h @@ -18,7 +18,6 @@ #pragma once #include <libsolidity/analysis/ControlFlowGraph.h> - #include <set> namespace dev diff --git a/libsolidity/analysis/ControlFlowGraph.cpp b/libsolidity/analysis/ControlFlowGraph.cpp index a7cc9508..8960166a 100644 --- a/libsolidity/analysis/ControlFlowGraph.cpp +++ b/libsolidity/analysis/ControlFlowGraph.cpp @@ -16,10 +16,9 @@ */ #include <libsolidity/analysis/ControlFlowGraph.h> -#include <libsolidity/analysis/ControlFlowBuilder.h> +#include <libsolidity/analysis/ControlFlowBuilder.h> #include <boost/range/adaptor/reversed.hpp> - #include <algorithm> using namespace std; diff --git a/libsolidity/analysis/DeclarationContainer.cpp b/libsolidity/analysis/DeclarationContainer.cpp index cf12a49d..d0657898 100644 --- a/libsolidity/analysis/DeclarationContainer.cpp +++ b/libsolidity/analysis/DeclarationContainer.cpp @@ -21,6 +21,7 @@ */ #include <libsolidity/analysis/DeclarationContainer.h> + #include <libsolidity/ast/AST.h> #include <libsolidity/ast/Types.h> #include <libdevcore/StringUtils.h> diff --git a/libsolidity/analysis/DeclarationContainer.h b/libsolidity/analysis/DeclarationContainer.h index 9d7a17a3..e26f5891 100644 --- a/libsolidity/analysis/DeclarationContainer.h +++ b/libsolidity/analysis/DeclarationContainer.h @@ -22,11 +22,10 @@ #pragma once +#include <libsolidity/ast/ASTForward.h> +#include <boost/noncopyable.hpp> #include <map> #include <set> -#include <boost/noncopyable.hpp> - -#include <libsolidity/ast/ASTForward.h> namespace dev { diff --git a/libsolidity/analysis/DocStringAnalyser.cpp b/libsolidity/analysis/DocStringAnalyser.cpp index 69a7a43c..0878b550 100644 --- a/libsolidity/analysis/DocStringAnalyser.cpp +++ b/libsolidity/analysis/DocStringAnalyser.cpp @@ -22,9 +22,10 @@ */ #include <libsolidity/analysis/DocStringAnalyser.h> + #include <libsolidity/ast/AST.h> -#include <liblangutil/ErrorReporter.h> #include <libsolidity/parsing/DocStringParser.h> +#include <liblangutil/ErrorReporter.h> using namespace std; using namespace dev; diff --git a/libsolidity/analysis/GlobalContext.cpp b/libsolidity/analysis/GlobalContext.cpp index cba2655c..cd5fe07d 100644 --- a/libsolidity/analysis/GlobalContext.cpp +++ b/libsolidity/analysis/GlobalContext.cpp @@ -21,10 +21,11 @@ * Container of the (implicit and explicit) global objects. */ -#include <memory> #include <libsolidity/analysis/GlobalContext.h> + #include <libsolidity/ast/AST.h> #include <libsolidity/ast/Types.h> +#include <memory> using namespace std; diff --git a/libsolidity/analysis/GlobalContext.h b/libsolidity/analysis/GlobalContext.h index 4ed08711..09611c41 100644 --- a/libsolidity/analysis/GlobalContext.h +++ b/libsolidity/analysis/GlobalContext.h @@ -22,12 +22,12 @@ #pragma once -#include <string> -#include <vector> +#include <libsolidity/ast/ASTForward.h> +#include <boost/noncopyable.hpp> #include <map> #include <memory> -#include <boost/noncopyable.hpp> -#include <libsolidity/ast/ASTForward.h> +#include <string> +#include <vector> namespace dev { diff --git a/libsolidity/analysis/NameAndTypeResolver.cpp b/libsolidity/analysis/NameAndTypeResolver.cpp index 0528a200..95bc69fe 100644 --- a/libsolidity/analysis/NameAndTypeResolver.cpp +++ b/libsolidity/analysis/NameAndTypeResolver.cpp @@ -22,11 +22,10 @@ #include <libsolidity/analysis/NameAndTypeResolver.h> -#include <libsolidity/ast/AST.h> #include <libsolidity/analysis/TypeChecker.h> +#include <libsolidity/ast/AST.h> #include <liblangutil/ErrorReporter.h> #include <libdevcore/StringUtils.h> - #include <boost/algorithm/string.hpp> using namespace std; diff --git a/libsolidity/analysis/NameAndTypeResolver.h b/libsolidity/analysis/NameAndTypeResolver.h index 1b034ef4..89c53932 100644 --- a/libsolidity/analysis/NameAndTypeResolver.h +++ b/libsolidity/analysis/NameAndTypeResolver.h @@ -22,13 +22,15 @@ #pragma once -#include <map> -#include <list> -#include <boost/noncopyable.hpp> #include <libsolidity/analysis/DeclarationContainer.h> #include <libsolidity/analysis/ReferencesResolver.h> -#include <libsolidity/ast/ASTVisitor.h> #include <libsolidity/ast/ASTAnnotations.h> +#include <libsolidity/ast/ASTVisitor.h> + +#include <boost/noncopyable.hpp> + +#include <list> +#include <map> namespace langutil { diff --git a/libsolidity/analysis/PostTypeChecker.cpp b/libsolidity/analysis/PostTypeChecker.cpp index 27cbcd45..6a7e5c7e 100644 --- a/libsolidity/analysis/PostTypeChecker.cpp +++ b/libsolidity/analysis/PostTypeChecker.cpp @@ -16,15 +16,14 @@ */ #include <libsolidity/analysis/PostTypeChecker.h> -#include <libsolidity/ast/AST.h> + #include <libsolidity/analysis/SemVerHandler.h> -#include <liblangutil/ErrorReporter.h> +#include <libsolidity/ast/AST.h> #include <libsolidity/interface/Version.h> - +#include <liblangutil/ErrorReporter.h> #include <libdevcore/Algorithms.h> #include <boost/range/adaptor/map.hpp> - #include <memory> using namespace std; diff --git a/libsolidity/analysis/ReferencesResolver.cpp b/libsolidity/analysis/ReferencesResolver.cpp index 76641c04..4e6d7f59 100644 --- a/libsolidity/analysis/ReferencesResolver.cpp +++ b/libsolidity/analysis/ReferencesResolver.cpp @@ -21,13 +21,15 @@ */ #include <libsolidity/analysis/ReferencesResolver.h> -#include <libsolidity/ast/AST.h> #include <libsolidity/analysis/NameAndTypeResolver.h> #include <libsolidity/analysis/ConstantEvaluator.h> +#include <libsolidity/ast/AST.h> + #include <libyul/AsmAnalysis.h> #include <libyul/AsmAnalysisInfo.h> #include <libyul/AsmData.h> #include <libyul/backends/evm/EVMDialect.h> + #include <liblangutil/ErrorReporter.h> #include <liblangutil/Exceptions.h> diff --git a/libsolidity/analysis/ReferencesResolver.h b/libsolidity/analysis/ReferencesResolver.h index 32c0553f..b3de9458 100644 --- a/libsolidity/analysis/ReferencesResolver.h +++ b/libsolidity/analysis/ReferencesResolver.h @@ -22,12 +22,13 @@ #pragma once -#include <map> -#include <list> -#include <boost/noncopyable.hpp> #include <libsolidity/ast/ASTVisitor.h> #include <libsolidity/ast/ASTAnnotations.h> +#include <boost/noncopyable.hpp> +#include <list> +#include <map> + namespace langutil { class ErrorReporter; diff --git a/libsolidity/analysis/SemVerHandler.cpp b/libsolidity/analysis/SemVerHandler.cpp index 64fa17b3..7c6ba91f 100644 --- a/libsolidity/analysis/SemVerHandler.cpp +++ b/libsolidity/analysis/SemVerHandler.cpp @@ -21,6 +21,7 @@ */ #include <libsolidity/analysis/SemVerHandler.h> + #include <functional> using namespace std; diff --git a/libsolidity/analysis/StaticAnalyzer.cpp b/libsolidity/analysis/StaticAnalyzer.cpp index 4d0f3461..aaaa4f9f 100644 --- a/libsolidity/analysis/StaticAnalyzer.cpp +++ b/libsolidity/analysis/StaticAnalyzer.cpp @@ -21,6 +21,7 @@ */ #include <libsolidity/analysis/StaticAnalyzer.h> + #include <libsolidity/analysis/ConstantEvaluator.h> #include <libsolidity/ast/AST.h> #include <liblangutil/ErrorReporter.h> diff --git a/libsolidity/analysis/SyntaxChecker.cpp b/libsolidity/analysis/SyntaxChecker.cpp index a73d7e5c..12e14864 100644 --- a/libsolidity/analysis/SyntaxChecker.cpp +++ b/libsolidity/analysis/SyntaxChecker.cpp @@ -16,15 +16,18 @@ */ #include <libsolidity/analysis/SyntaxChecker.h> -#include <memory> + +#include <libsolidity/analysis/SemVerHandler.h> #include <libsolidity/ast/AST.h> #include <libsolidity/ast/ExperimentalFeatures.h> -#include <libsolidity/analysis/SemVerHandler.h> -#include <liblangutil/ErrorReporter.h> #include <libsolidity/interface/Version.h> -#include <boost/algorithm/cxx11/all_of.hpp> +#include <liblangutil/ErrorReporter.h> + +#include <boost/algorithm/cxx11/all_of.hpp> #include <boost/algorithm/string.hpp> + +#include <memory> #include <string> using namespace std; diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index 5bd96f8d..507a2c94 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -26,7 +26,6 @@ #include <libyul/AsmAnalysis.h> #include <libyul/AsmAnalysisInfo.h> #include <libyul/AsmData.h> - #include <libyul/backends/evm/EVMDialect.h> #include <liblangutil/ErrorReporter.h> @@ -35,8 +34,8 @@ #include <libdevcore/StringUtils.h> #include <boost/algorithm/cxx11/all_of.hpp> -#include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/join.hpp> +#include <boost/algorithm/string/predicate.hpp> #include <memory> #include <vector> diff --git a/libsolidity/analysis/TypeChecker.h b/libsolidity/analysis/TypeChecker.h index ebfcdadc..b60c571a 100644 --- a/libsolidity/analysis/TypeChecker.h +++ b/libsolidity/analysis/TypeChecker.h @@ -24,10 +24,10 @@ #include <liblangutil/EVMVersion.h> -#include <libsolidity/ast/Types.h> #include <libsolidity/ast/ASTAnnotations.h> #include <libsolidity/ast/ASTForward.h> #include <libsolidity/ast/ASTVisitor.h> +#include <libsolidity/ast/Types.h> namespace langutil { diff --git a/libsolidity/analysis/ViewPureChecker.cpp b/libsolidity/analysis/ViewPureChecker.cpp index bd3071b3..eb019481 100644 --- a/libsolidity/analysis/ViewPureChecker.cpp +++ b/libsolidity/analysis/ViewPureChecker.cpp @@ -16,14 +16,10 @@ */ #include <libsolidity/analysis/ViewPureChecker.h> - -#include <libevmasm/SemanticInformation.h> - #include <libsolidity/ast/ExperimentalFeatures.h> #include <libyul/AsmData.h> - #include <liblangutil/ErrorReporter.h> - +#include <libevmasm/SemanticInformation.h> #include <functional> using namespace std; |