sstwcw added inline comments.

================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:379
     if (NextLine.First->is(tok::l_brace)) {
       if ((TheLine->First->isOneOf(tok::kw_if, tok::kw_else, tok::kw_while,
                                    tok::kw_for, tok::kw_switch, tok::kw_try,
----------------
Why not use `FirstNonComment` instead of `TheLine->First` down here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119649/new/

https://reviews.llvm.org/D119649

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

Reply via email to