clayborg added a comment.

In https://reviews.llvm.org/D47992#1134120, @apolyakov wrote:

> If you look at `bool CMICmdCmdExecContinue::Execute()`, you'll see that there 
> are cases in which we need a flexible way to finish MI command(specific 
> action in error case for example). We have a few options: not to add such an 
> utility function, add and use it in simple situations where we just want to 
> check on SBError status or we may create utility function with lambda 
> functions in which user could specify actions he needs. What are your 
> thoughts about this?


I am just trying to reduce duplicated code with my suggestion. Feel free to 
code normally when you are doing tricky things for returning in the middle of a 
function with special error cases.


https://reviews.llvm.org/D47992



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to