aboutsummaryrefslogtreecommitdiffstats
path: root/InterfaceHandler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-20 20:15:43 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-20 20:15:43 +0800
commite0d1f79e0689f0236f8d337f0e34951e691833eb (patch)
tree0ba3cef40ef448bb3235a929611b3146cb17ad51 /InterfaceHandler.cpp
parent417f9c03d03a9fa52665bd238a42081d55df62c9 (diff)
downloaddexon-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.cpp10
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;
}
}