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:
rocky 2019-04-17 07:02:30 -04:00
parent 94053c9a52
commit b424446c5f
9 changed files with 11 additions and 14 deletions

View File

@ -12,6 +12,8 @@ set(sources
ParserBase.h
Scanner.cpp
Scanner.h
SemVerHandler.cpp
SemVerHandler.h
SourceLocation.h
SourceReferenceExtractor.cpp
SourceReferenceExtractor.h

View File

@ -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)
{

View File

@ -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:
};
}
}

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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;