summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
diff options
context:
space:
mode:
authorJakob Lykke Andersen <Jakob@caput.dk>2021-06-28 19:30:59 +0200
committerJakob Lykke Andersen <Jakob@caput.dk>2021-06-28 19:30:59 +0200
commit358efdd8f3bed92cac0177fb8f527a43e2e93fe1 (patch)
treea9ef9cb6f0bf586ef8fcd4293d230f1fdbb09843 /sphinx/domains/cpp.py
parentc15c5cf3ee2157c5ae55a01ad4be147a780fe0e7 (diff)
downloadsphinx-git-358efdd8f3bed92cac0177fb8f527a43e2e93fe1.tar.gz
C++, fix name mangling of literals with digit seps
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r--sphinx/domains/cpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index a3e0ae35c..09f938401 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -869,7 +869,7 @@ class ASTNumberLiteral(ASTLiteral):
def get_id(self, version: int) -> str:
# TODO: floats should be mangled by writing the hex of the binary representation
- return "L%sE" % self.data
+ return "L%sE" % self.data.replace("'", "")
def describe_signature(self, signode: TextElement, mode: str,
env: "BuildEnvironment", symbol: "Symbol") -> None: