Blame doxygen-771344.patch
|
Than Ngo |
51a1d8 |
commit b93dbcdab6dfc5681ec49f1d567698b7c4dc6846
|
|
Than Ngo |
51a1d8 |
Author: albert-github <albert.tests@gmail.com>
|
|
Than Ngo |
51a1d8 |
Date: Sun Sep 18 17:58:30 2016 +0200
|
|
Than Ngo |
51a1d8 |
|
|
Than Ngo |
51a1d8 |
Bug 771344 - Class name 'internal' breaks class hierarchy in C++
|
|
Than Ngo |
51a1d8 |
|
|
Than Ngo |
51a1d8 |
Analogous to the rule for:
|
|
Than Ngo |
51a1d8 |
<FindMembers>{B}*"internal"{BN}*":"{BN}*
|
|
Than Ngo |
51a1d8 |
reject the "internal" keyword in case not in Cli
|
|
Than Ngo |
51a1d8 |
|
|
Than Ngo |
51a1d8 |
diff --git a/src/scanner.l b/src/scanner.l
|
|
Than Ngo |
51a1d8 |
index 6c69224..68eb8fc 100644
|
|
Than Ngo |
51a1d8 |
--- a/src/scanner.l
|
|
Than Ngo |
51a1d8 |
+++ b/src/scanner.l
|
|
Than Ngo |
51a1d8 |
@@ -5771,7 +5771,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
|
|
Than Ngo |
51a1d8 |
<BasesProt>"virtual"{BN}+ { lineCount(); baseVirt = Virtual; }
|
|
Than Ngo |
51a1d8 |
<BasesProt>"public"{BN}+ { lineCount(); baseProt = Public; }
|
|
Than Ngo |
51a1d8 |
<BasesProt>"protected"{BN}+ { lineCount(); baseProt = Protected; }
|
|
Than Ngo |
51a1d8 |
-<BasesProt>"internal"{BN}+ { lineCount(); baseProt = Package; }
|
|
Than Ngo |
51a1d8 |
+<BasesProt>"internal"{BN}+ { if (!insideCli) REJECT ; lineCount(); baseProt = Package; }
|
|
Than Ngo |
51a1d8 |
<BasesProt>"private"{BN}+ { lineCount(); baseProt = Private; }
|
|
Than Ngo |
51a1d8 |
<BasesProt>{BN} { lineCount(); }
|
|
Than Ngo |
51a1d8 |
<BasesProt>. { unput(*yytext); BEGIN(Bases); }
|