Commit 72edccb2 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 705702 - Post-comment blocks on C++11 using definitions attach to following entity

parent 60b10c9e
......@@ -666,6 +666,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
%x ReadBodyIntf
%x Using
%x UsingAlias
%x UsingAliasEnd
%x UsingDirective
%x SkipCurly
%x SkipCurlyCpp
......@@ -1976,6 +1977,28 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
previous->spec |= Entry::Alias;
BEGIN(FindMembers);
}
<UsingAlias>";"{BN}*("/**"|"//!"|"/*!"|"///")"<" {
docBlockContext = UsingAliasEnd;
docBlockInBody = FALSE;
docBlockAutoBrief = ( yytext[yyleng-2]=='*' && Config_getBool("JAVADOC_AUTOBRIEF") ) ||
( yytext[yyleng-2]=='!' && Config_getBool("QT_AUTOBRIEF") );
QCString indent;
indent.fill(' ',computeIndent(yytext,g_column));
docBlock=indent;
lineCount();
docBlockTerm = ';';
if (yytext[yyleng-3]=='/')
{
startCommentBlock(TRUE);
BEGIN( DocLine );
}
else
{
startCommentBlock(FALSE);
BEGIN( DocBlock );
}
}
<UsingAlias>. {
previous->args+=yytext;
}
......@@ -1983,6 +2006,14 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
previous->args+=yytext;
lineCount();
}
<UsingAliasEnd>";" {
previous->doc = current->doc;
previous->brief = current->brief;
current->doc.resize(0);
current->brief.resize(0);
unput(';');
BEGIN(UsingAlias);
}
<UsingDirective>{SCOPENAME} { current->name=removeRedundantWhiteSpace(yytext);
current->fileName = yyFileName;
current->section=Entry::USINGDIR_SEC;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment