Permalink
Browse files

Bug 771344 - Class name 'internal' breaks class hierarchy in C++

Analogous to the rule for:
    <FindMembers>{B}*"internal"{BN}*":"{BN}*
reject the "internal" keyword in case not in Cli
  • Loading branch information...
albert-github committed Sep 18, 2016
1 parent ca38847 commit b93dbcdab6dfc5681ec49f1d567698b7c4dc6846
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scanner.l
@@ -5771,7 +5771,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
<BasesProt>"virtual"{BN}+ { lineCount(); baseVirt = Virtual; }
<BasesProt>"public"{BN}+ { lineCount(); baseProt = Public; }
<BasesProt>"protected"{BN}+ { lineCount(); baseProt = Protected; }
<BasesProt>"internal"{BN}+ { lineCount(); baseProt = Package; }
<BasesProt>"internal"{BN}+ { if (!insideCli) REJECT ; lineCount(); baseProt = Package; }
<BasesProt>"private"{BN}+ { lineCount(); baseProt = Private; }
<BasesProt>{BN} { lineCount(); }
<BasesProt>. { unput(*yytext); BEGIN(Bases); }

0 comments on commit b93dbcd

Please sign in to comment.