[PATCH] D111273: [clang-format-diff] Fix missing formatting for zero length git diff lines

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 7 05:17:26 PDT 2021


hans added a comment.

Are there no tests for clang-format-diff.py? That seems unfortunate.

Will this handle more nested cases, for example if the first line here is deleted, will we fix the indent of both "if (b)" and "c"?

  if (a)
    if (b)
      c;

I worry that this might be a tricky problem..


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111273



More information about the cfe-commits mailing list