[clang] [Clang][C++2d] Implement defaulted postfix increment and decrement operators (P3668R4) (PR #229560)

Ambrose Leeb via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 8 12:54:55 PDT 2026


================
@@ -9499,24 +9509,24 @@ ComputeDefaultedComparisonExceptionSpec(Sema &S, SourceLocation Loc,
   return ExceptSpec;
 }
 
-//===----------------------------------------------------------------------===//
+static Sema::ImplicitExceptionSpecification
+ComputeDefaultedComparisonExceptionSpec(Sema &S, SourceLocation Loc,
+                                        FunctionDecl *FD,
+                                        DefaultedComparisonKind DCK) {
+  return computeExceptionSpecFromSynthesizedBody(
+      S, Loc, FD, [&](SourceLocation BodyLoc) {
----------------
Sirraide wrote:

Same here

https://github.com/llvm/llvm-project/pull/229560


More information about the cfe-commits mailing list