diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2020-07-02 18:26:40 +0300 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2020-07-04 20:34:00 +0300 |
commit | c668500a4b37e5cf3c7015bda8a558ededbcebfe (patch) | |
tree | 1fabdf1c290102d4024ddfe1b172776f08fa7b3f /sphinx/domains/cpp.py | |
parent | 8c82ecbf2c2f7f9d32959f65be17bf2853aab625 (diff) |
Add :noindexentry: option
Fixes sphinx-doc/sphinx#7052
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r-- | sphinx/domains/cpp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 310691d49..c840423aa 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -6625,6 +6625,7 @@ class CPPObject(ObjectDescription): ] option_spec = { + 'noindexentry': directives.flag, 'tparam-line-spec': directives.flag, } @@ -6701,7 +6702,7 @@ class CPPObject(ObjectDescription): if decl.objectType == 'concept': isInConcept = True break - if not isInConcept: + if not isInConcept and 'noindexentry' not in self.options: strippedName = name for prefix in self.env.config.cpp_index_common_prefix: if name.startswith(prefix): |