[PATCH] D54881: [clang-format] Prevent Clang-Format from editing leading whitespace on lines outside of the format range

Russell McClellan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 6 10:17:42 PDT 2019


russellmcc added a comment.

Hey, still motivated to land this, but definitely don't want to break any existing workflows.

In particular,

> but this afaict (unless I'm missing something :) will also affect the workflow where the provided range is 0-length range

I'm curious how to do this - as I mentioned, I know how to trigger a format on a 1-length range, but I don't understand how to trigger a 0-length range.


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

https://reviews.llvm.org/D54881





More information about the cfe-commits mailing list