<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 27, 2017 at 4:36 PM, Rui Ueyama <span dir="ltr"><<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 27, 2017 at 4:33 PM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br><div class="gmail_quote"><span><div dir="auto">On Tue, Dec 26, 2017 at 11:28 PM Rui Ueyama via Phabricator <<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ruiu added inline comments.<br>
<br>
<br>
================<br>
Comment at: llvm/lib/Support/CommandLine.c<wbr>pp:692<br>
+static bool isWhitespace(char C) {<br>
+  switch(C) {<br>
+    case ' ':<br>
----------------<br>
I'd ignore formfeed and vertical tab, and write like this<br>
<br>
  return C == ' ' || C = '\t' || C = '\r' || C = '\n';</blockquote></span><div dir="auto">Why not just call std::isspace?</div></div></div>
</blockquote></div><br></div></div></div><div class="gmail_extra">I think what he was trying to do is to avoid the cost of function call. Also, isspace is location-aware and thus not that convenient to use, no?</div></div>
</blockquote></div><br></div><div class="gmail_extra">Sorry, I meant locale, not location.</div></div>