Skip to content

Commit

Permalink
Fixed differently by changing root cause for introducing the space
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Nov 24, 2018
1 parent dcf89b5 commit 890e356
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
5 changes: 1 addition & 4 deletions src/reflist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,7 @@ void RefList::generatePage()
if (item->scope->name() != "<globalScope>")
{
doc += "\\_setscope ";
if (item->scope->name().right(3)==" -p")
doc += item->scope->name().left(item->scope->name().length()-3) + "-p";
else
doc += item->scope->name();
doc += item->scope->name();
doc += " ";
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -5457,7 +5457,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
}
BEGIN( FindMembers ) ;
}
<CompoundName>{SCOPENAME}{BN}*/"<" {
<CompoundName>{SCOPENAME}/{BN}*"<" {
sharpCount = 0;
current->name = yytext ;
if (current->spec & Entry::Protocol)
Expand Down
11 changes: 3 additions & 8 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1424,12 +1424,8 @@ static ClassDef *getResolvedClassRec(const Definition *scope,
di = Doxygen::symbolMap->find(name+"-p");
if (di==0)
{
di = Doxygen::symbolMap->find(name+" -p");
if (di==0)
{
//printf("no such symbol!\n");
return 0;
}
//printf("no such symbol!\n");
return 0;
}
//}
}
Expand Down Expand Up @@ -4560,8 +4556,7 @@ static bool getScopeDefs(const char *docScope,const char *scope,
if (scopeOffset>0) fullName.prepend(docScopeName.left(scopeOffset)+"::");

if (((cd=getClass(fullName)) || // normal class
(cd=getClass(fullName+"-p")) || // ObjC protocol
(cd=getClass(fullName+" -p")) //|| // ObjC protocol
(cd=getClass(fullName+"-p")) //|| // ObjC protocol
//(cd=getClass(fullName+"-g")) // C# generic
) && cd->isLinkable())
{
Expand Down

0 comments on commit 890e356

Please sign in to comment.