[PATCH] D25326: [StaticAnalyser] Don't merge different returns in ExplodedGraph

Artem Dergachev via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 10 01:01:02 PDT 2016


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





More information about the cfe-commits mailing list