diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-10 23:44:54 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-10 23:44:54 +0800 |
commit | aebd1490bded59e063bb60237ff5a3285b1bcea1 (patch) | |
tree | a312157a9b1a6fa2805b1dd75917185d2151c887 /InterfaceHandler.cpp | |
parent | fbc35003cee590b24bbbf8b68dad1cf4a81073c5 (diff) | |
download | dexon-solidity-aebd1490bded59e063bb60237ff5a3285b1bcea1.tar.gz dexon-solidity-aebd1490bded59e063bb60237ff5a3285b1bcea1.tar.zst dexon-solidity-aebd1490bded59e063bb60237ff5a3285b1bcea1.zip |
Styling issues and add TODO in Interfacehandler
Diffstat (limited to 'InterfaceHandler.cpp')
-rw-r--r-- | InterfaceHandler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp index ac1fb29a..f26088af 100644 --- a/InterfaceHandler.cpp +++ b/InterfaceHandler.cpp @@ -217,7 +217,8 @@ std::string::const_iterator InterfaceHandler::parseDocTag(std::string::const_ite CommentOwner _owner) { // LTODO: need to check for @(start of a tag) between here and the end of line - // for all cases + // for all cases. Also somehow automate list of acceptable tags for each + // language construct since current way does not scale well. if (m_lastTag == DocTagType::NONE || _tag != "") { if (_tag == "dev") @@ -230,7 +231,7 @@ std::string::const_iterator InterfaceHandler::parseDocTag(std::string::const_ite { if (_owner == CommentOwner::CONTRACT) return parseDocTagLine(_pos, _end, m_contractAuthor, DocTagType::AUTHOR); - else if(_owner == CommentOwner::FUNCTION) + else if (_owner == CommentOwner::FUNCTION) return parseDocTagLine(_pos, _end, m_author, DocTagType::AUTHOR); else // LTODO: for now this else makes no sense but later comments will go to more language constructs @@ -275,7 +276,7 @@ std::string::const_iterator InterfaceHandler::appendDocTag(std::string::const_it m_contractAuthor += " "; return parseDocTagLine(_pos, _end, m_contractAuthor, DocTagType::AUTHOR); } - else if(_owner == CommentOwner::FUNCTION) + else if (_owner == CommentOwner::FUNCTION) { m_author += " "; return parseDocTagLine(_pos, _end, m_author, DocTagType::AUTHOR); |