[PATCH] D122530: [demangler] Support C23 _BitInt type

Nathan Sidwell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 28 06:55:49 PDT 2022


urnathan added inline comments.


================
Comment at: libcxxabi/src/demangle/ItaniumDemangle.h:533-535
+    OB += "_BitInt(";
+    Size->print(OB);
+    OB += ')';
----------------
Now that   D120905 is landed please reword this as
```
  OB += "_BitInt";
  OB.printOpen();
  Size->printAsOperand(OB);
  OB.printClose();
```
(See NoexceptSpec as an example).  This will handle parens inside Size if this is inside template arg list.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122530/new/

https://reviews.llvm.org/D122530



More information about the llvm-commits mailing list