aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-12-12 23:45:17 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-12-18 23:02:35 +0800
commitc2ec6d71b4707dab9b7727347077904b7a90eaf2 (patch)
treee53763da22d68f1b97a5390f07c4d09c633baefa /libsolidity/analysis
parentc60ec958abea4f63eea8783d67a5054ca04d0a64 (diff)
downloaddexon-solidity-c2ec6d71b4707dab9b7727347077904b7a90eaf2.tar.gz
dexon-solidity-c2ec6d71b4707dab9b7727347077904b7a90eaf2.tar.zst
dexon-solidity-c2ec6d71b4707dab9b7727347077904b7a90eaf2.zip
Add version pragma parsing to Parser
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/SyntaxChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/SyntaxChecker.cpp b/libsolidity/analysis/SyntaxChecker.cpp
index 12e14864..066b5004 100644
--- a/libsolidity/analysis/SyntaxChecker.cpp
+++ b/libsolidity/analysis/SyntaxChecker.cpp
@@ -114,7 +114,7 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma)
vector<string> literals(_pragma.literals().begin() + 1, _pragma.literals().end());
SemVerMatchExpressionParser parser(tokens, literals);
auto matchExpression = parser.parse();
- SemVerVersion currentVersion{string(VersionString)};
+ static SemVerVersion const currentVersion{string(VersionString)};
if (!matchExpression.matches(currentVersion))
m_errorReporter.syntaxError(
_pragma.location(),