diff options
author | Michael Jones <m.pricejones@gmail.com> | 2010-11-18 08:56:39 +1300 |
---|---|---|
committer | Michael Jones <m.pricejones@gmail.com> | 2010-11-18 08:56:39 +1300 |
commit | e36ca00744902e4b83fd0be9d84a2a6f0dcdc358 (patch) | |
tree | f3e93c746b5a17a67a64de004c9297323d6a0b5e /sphinx/ext/coverage.py | |
parent | 55e70715235e77ea3c968e54d1ab419c67638ea0 (diff) | |
download | sphinx-git-e36ca00744902e4b83fd0be9d84a2a6f0dcdc358.tar.gz |
Account for arguments with only a type and no parameter name
Previously, the code was parsing the type into the argname variable and then
when it found something (not "," or ")") following the type it swapped the name
into the type and parsed next part as the name.
However, when no name is provided, as it allowed in c++, if you're not planning
on using the parameter, or it is in a function declaration, then the actual
type was being left in the name variable and the type variable was empty.
As a result function signatures for references were being generated without
knowledge of the type, which is the important factor in disambiguating
overloaded functions.
Diffstat (limited to 'sphinx/ext/coverage.py')
0 files changed, 0 insertions, 0 deletions