From e0d1f79e0689f0236f8d337f0e34951e691833eb Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Tue, 20 Jan 2015 13:15:43 +0100 Subject: [PATCH] Absence of tag in Natspec is now considered @notice --- InterfaceHandler.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp index 4c7ae5f45..1adce8cb8 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; } }