mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move SemVerHandler to analysis to parsing to increase modularity...
If ever you want to separate building analysis from scanning/parsing/ast, this will help.
This commit is contained in:
parent
94053c9a52
commit
b424446c5f
@ -12,6 +12,8 @@ set(sources
|
||||
ParserBase.h
|
||||
Scanner.cpp
|
||||
Scanner.h
|
||||
SemVerHandler.cpp
|
||||
SemVerHandler.h
|
||||
SourceLocation.h
|
||||
SourceReferenceExtractor.cpp
|
||||
SourceReferenceExtractor.h
|
||||
|
@ -20,13 +20,13 @@
|
||||
* Utilities to handle semantic versioning.
|
||||
*/
|
||||
|
||||
#include <libsolidity/analysis/SemVerHandler.h>
|
||||
#include <liblangutil/SemVerHandler.h>
|
||||
|
||||
#include <functional>
|
||||
|
||||
using namespace std;
|
||||
using namespace dev;
|
||||
using namespace dev::solidity;
|
||||
using namespace langutil;
|
||||
|
||||
SemVerVersion::SemVerVersion(string const& _versionString)
|
||||
{
|
@ -22,13 +22,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <libsolidity/parsing/Token.h>
|
||||
#include <liblangutil/Token.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace dev
|
||||
{
|
||||
namespace solidity
|
||||
namespace langutil
|
||||
{
|
||||
|
||||
class SemVerError: dev::Exception
|
||||
@ -109,4 +107,3 @@ private:
|
||||
};
|
||||
|
||||
}
|
||||
}
|
@ -22,8 +22,6 @@ set(sources
|
||||
analysis/PostTypeChecker.h
|
||||
analysis/ReferencesResolver.cpp
|
||||
analysis/ReferencesResolver.h
|
||||
analysis/SemVerHandler.cpp
|
||||
analysis/SemVerHandler.h
|
||||
analysis/StaticAnalyzer.cpp
|
||||
analysis/StaticAnalyzer.h
|
||||
analysis/SyntaxChecker.cpp
|
||||
|
@ -17,10 +17,10 @@
|
||||
|
||||
#include <libsolidity/analysis/PostTypeChecker.h>
|
||||
|
||||
#include <libsolidity/analysis/SemVerHandler.h>
|
||||
#include <libsolidity/ast/AST.h>
|
||||
#include <libsolidity/interface/Version.h>
|
||||
#include <liblangutil/ErrorReporter.h>
|
||||
#include <liblangutil/SemVerHandler.h>
|
||||
#include <libdevcore/Algorithms.h>
|
||||
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
|
@ -17,12 +17,12 @@
|
||||
|
||||
#include <libsolidity/analysis/SyntaxChecker.h>
|
||||
|
||||
#include <libsolidity/analysis/SemVerHandler.h>
|
||||
#include <libsolidity/ast/AST.h>
|
||||
#include <libsolidity/ast/ExperimentalFeatures.h>
|
||||
#include <libsolidity/interface/Version.h>
|
||||
|
||||
#include <liblangutil/ErrorReporter.h>
|
||||
#include <liblangutil/SemVerHandler.h>
|
||||
|
||||
#include <boost/algorithm/cxx11/all_of.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include <libsolidity/analysis/GlobalContext.h>
|
||||
#include <libsolidity/analysis/NameAndTypeResolver.h>
|
||||
#include <libsolidity/analysis/PostTypeChecker.h>
|
||||
#include <libsolidity/analysis/SemVerHandler.h>
|
||||
#include <libsolidity/analysis/StaticAnalyzer.h>
|
||||
#include <libsolidity/analysis/SyntaxChecker.h>
|
||||
#include <libsolidity/analysis/TypeChecker.h>
|
||||
@ -51,6 +50,7 @@
|
||||
#include <libyul/YulString.h>
|
||||
|
||||
#include <liblangutil/Scanner.h>
|
||||
#include <liblangutil/SemVerHandler.h>
|
||||
|
||||
#include <libevmasm/Exceptions.h>
|
||||
|
||||
|
@ -22,12 +22,12 @@
|
||||
|
||||
#include <libsolidity/parsing/Parser.h>
|
||||
|
||||
#include <libsolidity/analysis/SemVerHandler.h>
|
||||
#include <libsolidity/interface/Version.h>
|
||||
#include <libyul/AsmParser.h>
|
||||
#include <libyul/backends/evm/EVMDialect.h>
|
||||
#include <liblangutil/ErrorReporter.h>
|
||||
#include <liblangutil/Scanner.h>
|
||||
#include <liblangutil/SemVerHandler.h>
|
||||
#include <liblangutil/SourceLocation.h>
|
||||
#include <cctype>
|
||||
#include <vector>
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <vector>
|
||||
#include <tuple>
|
||||
#include <liblangutil/Scanner.h>
|
||||
#include <libsolidity/analysis/SemVerHandler.h>
|
||||
#include <liblangutil/SemVerHandler.h>
|
||||
#include <test/Options.h>
|
||||
|
||||
using namespace std;
|
||||
|
Loading…
Reference in New Issue
Block a user