Merge pull request #8912 from jakobandersen/cpp_index_prefix

C++, cpp_index_common_prefix remove longest prefix instead of first
This commit is contained in:
Jakob Lykke Andersen
2021-02-19 21:33:51 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -75,6 +75,8 @@ Bugs fixed
change) with late TeXLive 2019 change) with late TeXLive 2019
* #8253: LaTeX: Figures with no size defined get overscaled (compared to images * #8253: LaTeX: Figures with no size defined get overscaled (compared to images
with size explicitly set in pixels) (fixed for ``'pdflatex'/'lualatex'`` only) with size explicitly set in pixels) (fixed for ``'pdflatex'/'lualatex'`` only)
* #8911: C++: remove the longest matching prefix in
:confval:`cpp_index_common_prefix` instead of the first that matches.
Testing Testing
-------- --------

View File

@@ -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_lookup", False, '')
app.add_config_value("cpp_debug_show_tree", 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_lookup = app.config.cpp_debug_lookup
Symbol.debug_show_tree = app.config.cpp_debug_show_tree 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 { return {
'version': 'builtin', 'version': 'builtin',