aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-11 00:24:23 +0800
committerChristian <c@ethdev.com>2014-12-11 00:24:23 +0800
commit8b54d1afb2b3ad897330258367b2ce67c8a56940 (patch)
treeafa0085f16b7a46cdf2681626d3fa898830ef2a3 /Types.h
parent373f0da2675f298984f265672d7414a58c061512 (diff)
parent3c377f77bbe75e65159e79a61696ba906ac22bda (diff)
downloaddexon-solidity-8b54d1afb2b3ad897330258367b2ce67c8a56940.tar.gz
dexon-solidity-8b54d1afb2b3ad897330258367b2ce67c8a56940.tar.zst
dexon-solidity-8b54d1afb2b3ad897330258367b2ce67c8a56940.zip
Merge remote-tracking branch 'ethereum/develop' into sol_strings
Conflicts: libsolidity/Types.cpp
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Types.h b/Types.h
index c96d0bb1..bf047333 100644
--- a/Types.h
+++ b/Types.h
@@ -80,15 +80,15 @@ public:
///@{
///@name Factory functions
/// Factory functions that convert an AST @ref TypeName to a Type.
- static std::shared_ptr<Type> fromElementaryTypeName(Token::Value _typeToken);
- static std::shared_ptr<Type> fromUserDefinedTypeName(UserDefinedTypeName const& _typeName);
- static std::shared_ptr<Type> fromMapping(Mapping const& _typeName);
- static std::shared_ptr<Type> fromFunction(FunctionDefinition const& _function);
+ static std::shared_ptr<Type const> fromElementaryTypeName(Token::Value _typeToken);
+ static std::shared_ptr<Type const> fromUserDefinedTypeName(UserDefinedTypeName const& _typeName);
+ static std::shared_ptr<Type const> fromMapping(Mapping const& _typeName);
+ static std::shared_ptr<Type const> fromFunction(FunctionDefinition const& _function);
/// @}
/// Auto-detect the proper type for a literal. @returns an empty pointer if the literal does
/// not fit any type.
- static std::shared_ptr<Type> forLiteral(Literal const& _literal);
+ static std::shared_ptr<Type const> forLiteral(Literal const& _literal);
virtual Category getCategory() const = 0;
virtual bool isImplicitlyConvertibleTo(Type const& _other) const { return *this == _other; }
@@ -148,7 +148,7 @@ public:
/// @returns the smallest integer type for the given literal or an empty pointer
/// if no type fits.
- static std::shared_ptr<IntegerType> smallestTypeForLiteral(std::string const& _literal);
+ static std::shared_ptr<IntegerType const> smallestTypeForLiteral(std::string const& _literal);
explicit IntegerType(int _bits, Modifier _modifier = Modifier::UNSIGNED);
@@ -315,7 +315,7 @@ public:
virtual bool canLiveOutsideStorage() const override { return false; }
virtual unsigned getSizeOnStack() const override;
- Location getLocation() const { return m_location; }
+ Location const& getLocation() const { return m_location; }
private:
TypePointers m_parameterTypes;