summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-09-06 19:55:38 (GMT)
committerGitHub <noreply@github.com>2018-09-06 19:55:38 (GMT)
commit3e1360976b6ab9621b85d93fdd4e9232d6a7a7fa (patch)
treed24e8803f921136286dad7df0dad433068ecf3de
parent8a1d2cb36aa65687d22ff50086268b5260dfbc80 (diff)
parent7e591135c56c3679c5ee63aa78f6baeae2cde63f (diff)
downloadDoxygen-3e1360976b6ab9621b85d93fdd4e9232d6a7a7fa.zip
Doxygen-3e1360976b6ab9621b85d93fdd4e9232d6a7a7fa.tar.gz
Doxygen-3e1360976b6ab9621b85d93fdd4e9232d6a7a7fa.tar.bz2
Merge pull request #6430 from albert-github/feature/bug_self_php
'self' keyword in PHP documentation
-rw-r--r--src/code.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index 2c9b0ae..13d538b 100644
--- a/src/code.l
+++ b/src/code.l
@@ -1324,7 +1324,9 @@ static void generateFunctionLink(CodeOutputInterface &ol,const char *funcName)
//CodeClassDef *ccd=0;
ClassDef *ccd=0;
QCString locScope=g_classScope;
- QCString locFunc=removeRedundantWhiteSpace(funcName);
+ QString qq=removeRedundantWhiteSpace(funcName);
+ if (g_insidePHP && qq.startsWith("self::")) qq=qq.mid(4);
+ QCString locFunc(qq.data());
QCString funcScope;
QCString funcWithScope=locFunc;
QCString funcWithFullScope=locFunc;