On Wed, 2018-06-06 at 14:25 -0600, Jason Gunthorpe wrote: > I saw your note in the original mailing-list thread and just wanted to > say the way I use clang-format is editor based. > > I have a hotkey that triggers clang-format to reformat the current > statement, or current hi-lighted region. If I don't like it, then > 'undo' puts it all back for manual adjustment.. > > This way I am selective of where I apply it, and I find it is > something like 95% of the time good, IHMO. > > Big time saver for wrapping long lines, moving code around (eg > indent,de-indent) and other mundane daily tasks.
Cool for you. I do most of that via emacs indent-region but perhaps for rewrapping content and such, clang-format-region could be even better. I'll give it a go one day. cheers, Joe

