aprantl added a comment.
Seems good otherwise.
================
Comment at: source/API/SBTarget.cpp:1468
+ }
+ if (from[0] && to[0]) {
+ Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_API));
----------------
apolyakov wrote:
> I didn't find nullptr check in other API functions, is it OK or it's better
> to add it?
I would convert it to a ConstString up front and then check whether the
ConstString is empty. This way you don't have to worry about nullptr vs empty
string.
https://reviews.llvm.org/D49739
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits