mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
More verbose function naming
This commit is contained in:
parent
cc7834f2a9
commit
98b51b378e
@ -26,7 +26,7 @@ static inline string::const_iterator firstSpaceOrTab(
|
|||||||
return (spacePos < tabPos) ? spacePos : tabPos;
|
return (spacePos < tabPos) ? spacePos : tabPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline string::const_iterator firstWsOrNl(
|
static inline string::const_iterator firstWhitespaceOrNewline(
|
||||||
string::const_iterator _pos,
|
string::const_iterator _pos,
|
||||||
string::const_iterator _end
|
string::const_iterator _end
|
||||||
)
|
)
|
||||||
@ -66,7 +66,7 @@ bool DocStringParser::parse(string const& _docString, ErrorList& _errors)
|
|||||||
if (tagPos != end && tagPos < nlPos)
|
if (tagPos != end && tagPos < nlPos)
|
||||||
{
|
{
|
||||||
// we found a tag
|
// we found a tag
|
||||||
auto tagNameEndPos = firstWsOrNl(tagPos, end);
|
auto tagNameEndPos = firstWhitespaceOrNewline(tagPos, end);
|
||||||
if (tagNameEndPos == end)
|
if (tagNameEndPos == end)
|
||||||
{
|
{
|
||||||
appendError("End of tag " + string(tagPos, tagNameEndPos) + "not found");
|
appendError("End of tag " + string(tagPos, tagNameEndPos) + "not found");
|
||||||
|
Loading…
Reference in New Issue
Block a user