Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate ID for const overload #246

Closed
vitaut opened this issue Mar 30, 2016 · 2 comments · Fixed by #247
Closed

Duplicate ID for const overload #246

vitaut opened this issue Mar 30, 2016 · 2 comments · Fixed by #247

Comments

@vitaut
Copy link
Contributor

vitaut commented Mar 30, 2016

Consider the following example:

/** Test class */
class C {
 public:
  /** Test func */
  const int get() const;

  /** Test func */
  int get();
};
.. doxygenclass:: C
   :members:

It gives warning:

SEVERE: Duplicate ID: "C::get".
@vitaut
Copy link
Contributor Author

vitaut commented Mar 30, 2016

Both member functions get the same ID in the rendered HTML: _CPPv2N1C3getEv which corresponds to C::get(). Looks like const is lost somewhere.

vitaut added a commit that referenced this issue Mar 30, 2016
Previously they were added to the rendered output manually.
Without CV-qualifiers Sphinx cpp domain generates incorrect IDs
because of incomplete function signatures (#246).
@vitaut
Copy link
Contributor Author

vitaut commented Mar 30, 2016

Should be fixed in a3e2e7a.

vermeeren pushed a commit that referenced this issue Jun 4, 2018
Previously they were added to the rendered output manually.
Without CV-qualifiers Sphinx cpp domain generates incorrect IDs
because of incomplete function signatures (#246).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant