Pull requests

#182 Declined
Repository
Deleted repository
Branch
/add-struct-keyword-to-function-argument--1381871094274 (37d5f59d4fd8)
Repository
birkenfeld/sphinx sphinx
Branch
default

Add struct keyword to function argument parsing in cpp domain

Author
  1. michaeljones
Reviewers
Description

Add struct keyword to function argument parsing in cpp domain

It is legal C++ (due to being legal C, I guess) and is accounted for in the C domain parsing but not here. Example rst of:

.. c:function:: void func( struct string* )

.. cpp:function:: void func( struct string* )

Will pass for the c:function and fail for the cpp:function. The code compiles with:

g++ -std=c++11

Though there might be better checks for whether or not it is legal. This has come out of a discussion here:

https://github.com/michaeljones/breathe/issues/72

Commit made with bitbucket webinterface. Sorry if it is less than ideal for any reason.

  • Learn about pull requests

Comments (0)