Made rdoc documentation spit the full name of
class/methods to avoid name clashes. rdoc, unfortunately, needs patching to recognize this properly. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7d570676f5
commit
95a3ecf285
2 changed files with 12 additions and 6 deletions
|
|
@ -453,7 +453,6 @@ private:
|
|||
parent = parentNode(parent);
|
||||
}
|
||||
|
||||
Append(basenamestr, "#");
|
||||
Append(super_names, basenamestr );
|
||||
Delete(basenamestr);
|
||||
base = Next(base);
|
||||
|
|
@ -463,7 +462,7 @@ private:
|
|||
String* full_name;
|
||||
if ( module ) {
|
||||
full_name = NewString(module);
|
||||
Append(full_name, "::");
|
||||
if (class_name && Len(class_name) > 0) Append(full_name, "::");
|
||||
}
|
||||
else
|
||||
full_name = NewString("");
|
||||
|
|
@ -532,23 +531,23 @@ private:
|
|||
Append(doc, "\n\n");
|
||||
break;
|
||||
case AUTODOC_CTOR:
|
||||
Printf(doc, " Document-method: new\n\n", class_name);
|
||||
Printf(doc, " Document-method: %s.new\n\n", full_name);
|
||||
break;
|
||||
|
||||
case AUTODOC_DTOR:
|
||||
break;
|
||||
|
||||
case AUTODOC_STATICFUNC:
|
||||
Printf(doc, " Document-method: %s\n\n", full_name);
|
||||
Printf(doc, " Document-method: %s.%s\n\n", full_name, symname);
|
||||
break;
|
||||
|
||||
case AUTODOC_FUNC:
|
||||
case AUTODOC_METHOD:
|
||||
case AUTODOC_GETTER:
|
||||
Printf(doc, " Document-method: %s\n\n", symname);
|
||||
Printf(doc, " Document-method: %s.%s\n\n", full_name, symname);
|
||||
break;
|
||||
case AUTODOC_SETTER:
|
||||
Printf(doc, " Document-method: %s=\n\n", symname);
|
||||
Printf(doc, " Document-method: %s.%s=\n\n", full_name, symname);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue