aprantl added a comment.

Hmm.. @lemo 's reasoning



================
Comment at: scripts/interface/SBThread.i:257
+    %feature("autodoc",
+    "Do a instruction level single step in the currently selected thread.
+    ") StepInstruction;
----------------
a -> an


================
Comment at: source/API/SBThread.cpp:703
 
   if (exe_ctx.HasThreadScope()) {
     bool abort_other_plans = false;
----------------
Please always prefer early exits 
(https://www.llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code)

```
if (!exe_ctx.HasThreadScope())
  return error.SetErrorString("SBThread object is invalid");
```


================
Comment at: source/API/SBThread.cpp:752
 
   if (exe_ctx.HasThreadScope()) {
     bool abort_other_plans = false;
----------------
same here


================
Comment at: source/API/SBThread.cpp:1148
   bool result = false;
   if (exe_ctx.HasThreadScope()) {
     Process::StopLocker stop_locker;
----------------
and here.


https://reviews.llvm.org/D47991



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

Reply via email to