diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-20 20:15:43 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-20 20:15:43 +0800 |
commit | e0d1f79e0689f0236f8d337f0e34951e691833eb (patch) | |
tree | 0ba3cef40ef448bb3235a929611b3146cb17ad51 /InterfaceHandler.cpp | |
parent | 417f9c03d03a9fa52665bd238a42081d55df62c9 (diff) | |
download | dexon-solidity-e0d1f79e0689f0236f8d337f0e34951e691833eb.tar.gz dexon-solidity-e0d1f79e0689f0236f8d337f0e34951e691833eb.tar.zst dexon-solidity-e0d1f79e0689f0236f8d337f0e34951e691833eb.zip |
Absence of tag in Natspec is now considered @notice
Diffstat (limited to 'InterfaceHandler.cpp')
-rw-r--r-- | InterfaceHandler.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp index 4c7ae5f4..1adce8cb 100644 --- a/InterfaceHandler.cpp +++ b/InterfaceHandler.cpp @@ -351,9 +351,15 @@ void InterfaceHandler::parseDocString(std::string const& _string, CommentOwner _ currPos = appendDocTag(currPos, end, _owner); else if (currPos != end) { - if (nlPos == end) //end of text + // if it begins without a tag then consider it as @notice + if (currPos == _string.begin()) + { + currPos = parseDocTag(currPos, end, "notice", CommentOwner::FUNCTION); + continue; + } + else if (nlPos == end) //end of text return; - // else skip the line if a newline was found + // else skip the line if a newline was found and we get here currPos = nlPos + 1; } } |