aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-07-14 23:43:13 +0800
committerchriseth <c@ethdev.com>2015-07-14 23:43:13 +0800
commit3d03e85e4e39693e139aebe7205f176befa1a8bc (patch)
tree2a8ef3c32e67958438150bb66aa06c17939d9329 /Types.h
parentda818b1acdd8f02fccd18779cfb0ac397d7e61b1 (diff)
downloaddexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar
dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.gz
dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.bz2
dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.lz
dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.xz
dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.zst
dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.zip
Check whether a literal is a valid literal before using it.
Fixes #2078
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Types.h b/Types.h
index e17a262c..8af5b2dc 100644
--- a/Types.h
+++ b/Types.h
@@ -286,6 +286,9 @@ class IntegerConstantType: public Type
public:
virtual Category getCategory() const override { return Category::IntegerConstant; }
+ /// @returns true if the literal is a valid integer.
+ static bool isValidLiteral(Literal const& _literal);
+
explicit IntegerConstantType(Literal const& _literal);
explicit IntegerConstantType(bigint _value): m_value(_value) {}