diff options
| author | Jakob Lykke Andersen <Jakob@caput.dk> | 2016-06-16 10:54:16 +0900 |
|---|---|---|
| committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2016-06-16 10:54:16 +0900 |
| commit | 65dddfcd69801a49ac92e8eb9c2df7fb193dd472 (patch) | |
| tree | 9dc08f1211c095d905939de4f5bb687a89edb5a2 /tests/test_domain_cpp.py | |
| parent | 4cf78e608ec4c8fb877f3d80b5e4409fd852c21d (diff) | |
| download | sphinx-git-65dddfcd69801a49ac92e8eb9c2df7fb193dd472.tar.gz | |
C++, fix parsing of function types in other types.
Let all kinds of function parameters be allowed to have a name.
Fixes michaeljones/breathe#267.
Diffstat (limited to 'tests/test_domain_cpp.py')
| -rw-r--r-- | tests/test_domain_cpp.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py index f33e88128..778ac1c55 100644 --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -132,6 +132,11 @@ def test_type_definitions(): check('type', 'A = B', None, '1A') + # from breathe#267 (named function parameters for function pointers + check('type', 'void (*gpio_callback_t)(struct device *port, uint32_t pin)', + 'gpio_callback_t', '15gpio_callback_t') + check('type', 'void (*f)(std::function<void(int i)> g)', 'f', '1f') + def test_member_definitions(): check('member', ' const std::string & name = 42', |
