Browse Source

style fixes

cl-refactor
Liana Husikyan 10 years ago
parent
commit
f61f429f34
  1. 6
      libsolidity/InterfaceHandler.cpp
  2. 48
      libsolidity/InterfaceHandler.h

6
libsolidity/InterfaceHandler.cpp

@ -246,8 +246,10 @@ void InterfaceHandler::resetDev()
m_params.clear(); m_params.clear();
} }
static inline string::const_iterator skipLineOrEOS(string::const_iterator _nlPos, static inline string::const_iterator skipLineOrEOS(
string::const_iterator _end) string::const_iterator _nlPos,
string::const_iterator _end
)
{ {
return (_nlPos == _end) ? _end : ++_nlPos; return (_nlPos == _end) ? _end : ++_nlPos;
} }

48
libsolidity/InterfaceHandler.h

@ -67,8 +67,10 @@ public:
/// types provided by @c DocumentationType /// types provided by @c DocumentationType
/// @return A unique pointer contained string with the json /// @return A unique pointer contained string with the json
/// representation of provided type /// representation of provided type
std::unique_ptr<std::string> getDocumentation(ContractDefinition const& _contractDef, std::unique_ptr<std::string> getDocumentation(
DocumentationType _type); ContractDefinition const& _contractDef,
DocumentationType _type
);
/// Get the ABI Interface of the contract /// Get the ABI Interface of the contract
/// @param _contractDef The contract definition /// @param _contractDef The contract definition
/// @return A unique pointer contained string with the json /// @return A unique pointer contained string with the json
@ -90,23 +92,33 @@ private:
void resetUser(); void resetUser();
void resetDev(); void resetDev();
std::string::const_iterator parseDocTagLine(std::string::const_iterator _pos, std::string::const_iterator parseDocTagLine(
std::string::const_iterator _end, std::string::const_iterator _pos,
std::string& _tagString, std::string::const_iterator _end,
DocTagType _tagType, std::string& _tagString,
bool _appending); DocTagType _tagType,
std::string::const_iterator parseDocTagParam(std::string::const_iterator _pos, bool _appending
std::string::const_iterator _end); );
std::string::const_iterator appendDocTagParam(std::string::const_iterator _pos, std::string::const_iterator parseDocTagParam(
std::string::const_iterator _end); std::string::const_iterator _pos,
std::string::const_iterator _end
);
std::string::const_iterator appendDocTagParam(
std::string::const_iterator _pos,
std::string::const_iterator _end
);
void parseDocString(std::string const& _string, CommentOwner _owner); void parseDocString(std::string const& _string, CommentOwner _owner);
std::string::const_iterator appendDocTag(std::string::const_iterator _pos, std::string::const_iterator appendDocTag(
std::string::const_iterator _end, std::string::const_iterator _pos,
CommentOwner _owner); std::string::const_iterator _end,
std::string::const_iterator parseDocTag(std::string::const_iterator _pos, CommentOwner _owner
std::string::const_iterator _end, );
std::string const& _tag, std::string::const_iterator parseDocTag(
CommentOwner _owner); std::string::const_iterator _pos,
std::string::const_iterator _end,
std::string const& _tag,
CommentOwner _owner
);
// internal state // internal state
DocTagType m_lastTag; DocTagType m_lastTag;

Loading…
Cancel
Save