================
@@ -2646,6 +2647,8 @@ class FunctionDecl : public DeclaratorDecl,
   bool isTypeAwareOperatorNewOrDelete() const;
   void setIsTypeAwareOperatorNewOrDelete(bool IsTypeAwareOperator = true);
 
+  UsualDeleteParams getUsualDeleteParams() const;
----------------
andykaylor wrote:

> [@andykaylor](https://github.com/andykaylor) I think this should be an 
> optional return - e.g. `std::optional<UsualDeleteParams>` or we could smooth 
> out the declaration w/o the definition with `bool 
> getUsualDeleteParams(UsualDeleteParams *) const`. I'd prefer 
> `optional<UsualDeleteParams>` given the alternation of `true` and `false` 
> meaning success or fail in different places.

So rather than assert and return the default structure if it's called for a 
non-delete function it would just return `std::nullopt`?

https://github.com/llvm/llvm-project/pull/160554
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to