Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Lykke Andersen <Jakob@caput.dk>2021-02-19 16:20:13 +0300
committerJakob Lykke Andersen <Jakob@caput.dk>2021-02-19 16:24:33 +0300
commit95a872e7450d76bde759ac08de7322e692936da6 (patch)
tree352a27d85953ea41e344665ded1b970330507d89 /sphinx/domains
parentfaa71ee26d3636ab2aa759635633af701949c5dd (diff)
C++, cpp_index_common_prefix remove longest
Fixes sphinx-doc/sphinx#8911
Diffstat (limited to 'sphinx/domains')
-rw-r--r--sphinx/domains/cpp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index 7ee023d1d..cf93681ae 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -7644,10 +7644,11 @@ def setup(app: Sphinx) -> Dict[str, Any]:
app.add_config_value("cpp_debug_lookup", False, '')
app.add_config_value("cpp_debug_show_tree", False, '')
- def setDebugFlags(app):
+ def initStuff(app):
Symbol.debug_lookup = app.config.cpp_debug_lookup
Symbol.debug_show_tree = app.config.cpp_debug_show_tree
- app.connect("builder-inited", setDebugFlags)
+ app.config.cpp_index_common_prefix.sort(reverse=True)
+ app.connect("builder-inited", initStuff)
return {
'version': 'builtin',