summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-09-24 17:55:47 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-09-24 17:55:47 (GMT)
commit661a5377377a9f346a26c1cba38463f8d9c31d1a (patch)
tree1acb9357aa3b66c8a39c490462b0e72a681b28e4 /src/code.l
parented4515149fd0839dba1f59858aec37b73c0ac805 (diff)
parent5a25a7f33af4a53462a6ddea9e8b82d0d9f23280 (diff)
downloadDoxygen-661a5377377a9f346a26c1cba38463f8d9c31d1a.zip
Doxygen-661a5377377a9f346a26c1cba38463f8d9c31d1a.tar.gz
Doxygen-661a5377377a9f346a26c1cba38463f8d9c31d1a.tar.bz2
Merge branch 'fetaure/bug_340202' of https://github.com/albert-github/doxygen into albert-github-fetaure/bug_340202
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index 4998705..f8a062f 100644
--- a/src/code.l
+++ b/src/code.l
@@ -2606,7 +2606,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
<TemplCast>[*^]* {
codifyLines(yytext);
}
-<Body,FuncCall>{CASTKW}"<" { // static_cast<T>(
+<Body,MemberCall2,FuncCall>{CASTKW}{B}*"<" { // static_cast<T>(
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
@@ -2651,6 +2651,12 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
}
<Body>{SCOPETNAME}{B}*"<"[^\n\/\-\.\{\"\>]*">"/{BN}*"(" |
<Body>{SCOPETNAME}/{BN}*"(" { // a() or c::a() or t<A,B>::a() or A\B\foo()
+ int i=QCString(yytext).find('<');
+ QCString kw = QCString(yytext).left(i).stripWhiteSpace();
+ if (kw.right(5)=="_cast" && YY_START==Body)
+ {
+ REJECT;
+ }
addType();
generateFunctionLink(*g_code,yytext);
g_bracketCount=0;
@@ -3062,6 +3068,12 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
endFontClass();
}
<MemberCall2,FuncCall>{ID}(({B}*"<"[^\n\[\](){}<>]*">")?({B}*"::"{B}*{ID})?)* {
+ int i=QCString(yytext).find('<');
+ QCString kw = QCString(yytext).left(i).stripWhiteSpace();
+ if (kw.right(5)=="_cast")
+ {
+ REJECT;
+ }
addParmType();
g_parmName=yytext;
generateClassOrGlobalLink(*g_code,yytext,!g_insideBody);