summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-10-20 10:21:16 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-10-20 10:21:16 (GMT)
commit5f9be083471dad47a9b3ad59d85bf04d3a855001 (patch)
treeb1123a881edf90b8ca42068432c9c3f59cfe398f /src/code.l
parent2f50bc0bcc39cfb27537109b779d18d7389f81f1 (diff)
downloadDoxygen-5f9be083471dad47a9b3ad59d85bf04d3a855001.zip
Doxygen-5f9be083471dad47a9b3ad59d85bf04d3a855001.tar.gz
Doxygen-5f9be083471dad47a9b3ad59d85bf04d3a855001.tar.bz2
Bug 749049 - Doxygen not creating call graphs for C# methods if namespace contains the classname
Problem is the '.' in the namespace name. For Csharp: namespace N1.n2 { is equivalent to namespace N1 { namespace N2 { This splitting has to be considered in the scanner so the different namespaces are mentioned. In the code.l the '.' was not handled.
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index bb9744b..a55ab1a 100644
--- a/src/code.l
+++ b/src/code.l
@@ -2172,8 +2172,12 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
g_code->codify(yytext);
endFontClass();
}
+<ClassName>{ID}("."{ID})* |
<ClassName>{ID}("::"{ID})* {
- g_curClassName=yytext;
+ if(g_insideCS)
+ g_curClassName=substitute(yytext,".","::");
+ else
+ g_curClassName=yytext;
addType();
if (g_curClassName=="alignas")
{