mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix: cpp domain parser cannot parse 'static constexpr' declarations. closes #1038
This commit is contained in:
@@ -60,6 +60,9 @@ def test_type_definitions():
|
||||
x = 'constexpr int get_value()'
|
||||
assert unicode(parse('function', x)) == x
|
||||
|
||||
x = 'static constexpr int get_value()'
|
||||
assert unicode(parse('function', x)) == x
|
||||
|
||||
x = 'int get_value() const noexcept'
|
||||
assert unicode(parse('function', x)) == x
|
||||
|
||||
|
||||
Reference in New Issue
Block a user