summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-09-18 15:58:30 (GMT)
committeralbert-github <albert.tests@gmail.com>2016-09-18 15:58:30 (GMT)
commitb93dbcdab6dfc5681ec49f1d567698b7c4dc6846 (patch)
tree1be3e97feba5c3c56edbfb506fd7dede5e63a863
parentca388471e61564211123e1f40dd57ece3e4cb2c5 (diff)
downloadDoxygen-b93dbcdab6dfc5681ec49f1d567698b7c4dc6846.zip
Doxygen-b93dbcdab6dfc5681ec49f1d567698b7c4dc6846.tar.gz
Doxygen-b93dbcdab6dfc5681ec49f1d567698b7c4dc6846.tar.bz2
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
-rw-r--r--src/scanner.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 6c69224..68eb8fc 100644
--- a/src/scanner.l
+++ b/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); }