summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
diff options
context:
space:
mode:
authorJeremy Maitin-Shepard <jbms@google.com>2022-03-27 11:08:21 -0700
committerJakob Lykke Andersen <Jakob@caput.dk>2022-07-24 21:37:56 +0200
commit9694aa5a261a1cc376b771d934c8e6fbd060b3ae (patch)
treeceba9eb40cade78fe4f15c43ede5c3130b6906b6 /sphinx/domains/cpp.py
parentac1b0d490cd572fb048e80574e6cc8e7fed94e0a (diff)
downloadsphinx-git-9694aa5a261a1cc376b771d934c8e6fbd060b3ae.tar.gz
[C++] Allow trailing-requires-clause on functions without a template prefix
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r--sphinx/domains/cpp.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index b7ecc1651..7dd1d0c03 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -7017,8 +7017,7 @@ class DefinitionParser(BaseParser):
declaration = self._parse_type_with_init(named=True, outer='member')
elif objectType == 'function':
declaration = self._parse_type(named=True, outer='function')
- if templatePrefix is not None:
- trailingRequiresClause = self._parse_requires_clause()
+ trailingRequiresClause = self._parse_requires_clause()
elif objectType == 'class':
declaration = self._parse_class()
elif objectType == 'union':