mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
More style checks.
This commit is contained in:
@@ -653,7 +653,7 @@ void CompilerUtils::convertType(
|
||||
bool chopSignBitsPending = _chopSignBits && targetTypeCategory == Type::Category::Integer;
|
||||
if (chopSignBitsPending)
|
||||
{
|
||||
const IntegerType& targetIntegerType = dynamic_cast<const IntegerType &>(_targetType);
|
||||
const IntegerType& targetIntegerType = dynamic_cast<IntegerType const&>(_targetType);
|
||||
chopSignBitsPending = targetIntegerType.isSigned();
|
||||
}
|
||||
|
||||
|
||||
@@ -355,7 +355,7 @@ bool hasPayableFunctions(ContractDefinition const& _contract)
|
||||
void ContractCompiler::appendFunctionSelector(ContractDefinition const& _contract)
|
||||
{
|
||||
map<FixedHash<4>, FunctionTypePointer> interfaceFunctions = _contract.interfaceFunctions();
|
||||
map<FixedHash<4>, const eth::AssemblyItem> callDataUnpackerEntryPoints;
|
||||
map<FixedHash<4>, eth::AssemblyItem const> callDataUnpackerEntryPoints;
|
||||
|
||||
if (_contract.isLibrary())
|
||||
{
|
||||
|
||||
@@ -473,7 +473,7 @@ void StorageByteArrayElement::setToZero(SourceLocation const&, bool _removeRefer
|
||||
m_context << Instruction::SWAP1 << Instruction::SSTORE;
|
||||
}
|
||||
|
||||
StorageArrayLength::StorageArrayLength(CompilerContext& _compilerContext, const ArrayType& _arrayType):
|
||||
StorageArrayLength::StorageArrayLength(CompilerContext& _compilerContext, ArrayType const& _arrayType):
|
||||
LValue(_compilerContext, _arrayType.memberType("length").get()),
|
||||
m_arrayType(_arrayType)
|
||||
{
|
||||
|
||||
@@ -65,7 +65,7 @@ smt::Expression SymbolicVariable::increaseIndex()
|
||||
SymbolicBoolVariable::SymbolicBoolVariable(
|
||||
TypePointer _type,
|
||||
string const& _uniqueName,
|
||||
smt::SolverInterface&_interface
|
||||
smt::SolverInterface& _interface
|
||||
):
|
||||
SymbolicVariable(move(_type), _uniqueName, _interface)
|
||||
{
|
||||
@@ -102,7 +102,7 @@ SymbolicFixedBytesVariable::SymbolicFixedBytesVariable(
|
||||
SymbolicFunctionVariable::SymbolicFunctionVariable(
|
||||
TypePointer _type,
|
||||
string const& _uniqueName,
|
||||
smt::SolverInterface&_interface
|
||||
smt::SolverInterface& _interface
|
||||
):
|
||||
SymbolicVariable(move(_type), _uniqueName, _interface),
|
||||
m_declaration(m_interface.newVariable(currentName(), smtSort(*m_type)))
|
||||
|
||||
@@ -118,7 +118,7 @@ string Natspec::extractDoc(multimap<string, DocTag> const& _tags, string const&
|
||||
return value;
|
||||
}
|
||||
|
||||
Json::Value Natspec::devDocumentation(std::multimap<std::string, DocTag> const &_tags)
|
||||
Json::Value Natspec::devDocumentation(std::multimap<std::string, DocTag> const& _tags)
|
||||
{
|
||||
Json::Value json(Json::objectValue);
|
||||
auto dev = extractDoc(_tags, "dev");
|
||||
|
||||
@@ -59,7 +59,7 @@ private:
|
||||
/// @param _tags docTags that are used.
|
||||
/// @return A JSON representation
|
||||
/// of the contract's developer documentation
|
||||
static Json::Value devDocumentation(std::multimap<std::string, DocTag> const &_tags);
|
||||
static Json::Value devDocumentation(std::multimap<std::string, DocTag> const& _tags);
|
||||
};
|
||||
|
||||
} //solidity NS
|
||||
|
||||
Reference in New Issue
Block a user