mgorny added a comment. For the record, this has been fixed upstream: https://github.com/sphinx-doc/sphinx/pull/4282. However, I don't know which release version (if any) has the fix. Repository: rL LLVM https://reviews.llvm.org/D46503