NoQ added a comment. In https://reviews.llvm.org/D25326#565919, @danielmarjamaki wrote:
> Ideally it would be possible to run clang-format on the files before > committing. but currently I get lots of unrelated changes then. > > Would it be ok to run clang-format on some files to clean up the formatting? > At least some minor changes like removing trailing spaces. clang-format should be able to format small sections of the code, keeping in mind the rest of the file but not touching it. In vim, i use a hotkey for formatting the statement under cursor. I've seen a plugin for Xcode that clang-format's selected text. Also, there's this `git clang-format` thingy, which should be able to clang-format git changes and only them, i didn't try, but it might be universally useful. Repository: rL LLVM https://reviews.llvm.org/D25326 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits