Commit eb193634 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 700709 - typedef warning when "using" some operator functions

parent 580c6607
...@@ -624,6 +624,11 @@ IDLATTR ("["[^\]]*"]"){BN}* ...@@ -624,6 +624,11 @@ IDLATTR ("["[^\]]*"]"){BN}*
TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
RAWBEGIN (u|U|L|u8)?R\"[^ \t\(\)\\]{0,16}"(" RAWBEGIN (u|U|L|u8)?R\"[^ \t\(\)\\]{0,16}"("
RAWEND ")"[^ \t\(\)\\]{0,16}\" RAWEND ")"[^ \t\(\)\\]{0,16}\"
ARITHOP "+"|"-"|"/"|"*"|"%"|"--"|"++"
ASSIGNOP "="|"*="|"/="|"%="|"+="|"-="|"<<="|">>="|"&="|"^="|"|="
LOGICOP "=="|"!="|">"|"<"|">="|"<="|"&&"|"||"|"!"
BITOP "&"|"|"|"^"|"<<"|">>"|"~"
OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
%option noyywrap %option noyywrap
...@@ -1938,7 +1943,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" ...@@ -1938,7 +1943,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
BEGIN(Using); BEGIN(Using);
} }
<Using>"namespace"{BN}+ { lineCount(); BEGIN(UsingDirective); } <Using>"namespace"{BN}+ { lineCount(); BEGIN(UsingDirective); }
<Using>{ID}{BN}*({BN}*("::"|"."){BN}*{ID})* { <Using>({ID}{BN}*("::"|"."){BN}*)*({ID}|{OPERATOR}) {
lineCount(); lineCount();
current->name=yytext; current->name=yytext;
current->fileName = yyFileName; current->fileName = yyFileName;
......
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