================
@@ -2165,6 +2167,26 @@ void TypePrinter::printBTFTagAttributedAfter(const 
BTFTagAttributedType *T,
   printAfter(T->getWrappedType(), OS);
 }
 
+void TypePrinter::printOverflowBehaviorBefore(const OverflowBehaviorType *T,
+                                              raw_ostream &OS) {
+  StringRef KindName;
+  switch (T->getBehaviorKind()) {
+  case clang::OverflowBehaviorType::OverflowBehaviorKind::Wrap:
+    KindName = "__wrap";
+    break;
+  case clang::OverflowBehaviorType::OverflowBehaviorKind::NoWrap:
+    KindName = "__no_wrap";
+    break;
+  }
+  OS << KindName << " ";
+  printBefore(T->getUnderlyingType(), OS);
+}
----------------
JustinStitt wrote:

good idea. added to `clang/test/AST/`

https://github.com/llvm/llvm-project/pull/148914
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to