for those who aren't reading all the checkin comments -- is there even a way to get them mailed to you from github? -- note that although i didn't _say_ so, i did actually finish the "clang-format on save" stuff the other week. there's a new option in the preferences dialog.
note also that clang-format supports C/C++/Java/JavaScript/Objective-C/Protobuf, not just C/C++.
i'm enjoying it greatly for stuff i'm just dicking about with at home, but haven't turned it on at work or for the
jessies.org projects because i only implemented it with file scope, so unless you submit a "reformat the world" change (which upsets the history) any real change you make is lost in a sea of reformatting (because realistically you're a lot further from canonical style than you think you are).
i've also wondered how well clang-format --lines= would work as an indenter if we called it to reformat just the previous+current+next line each time enter is hit. (would potentially let us move closer to the original "we rely on external tools to do most things" style, though i think we'd still need enough intelligence to choose a reasonable scope. it's a pity we can't tell clang-format "reformat the logical line that contains the physical line N")
or there's the easy cop-out option of a command to clang-format the selection, but i suspect that the act of selection would be annoying enough that i'd never use it.
--