> On 19 May 2019, at 18:43, Christian Hopps <[email protected]> wrote:
> 
> Hi vpp-devs,
> 
> Having gotten bit by a checkstyle failure on my first submission, I decided 
> to port the "go-like" functionality of auto-formatting the file (using indent 
> since that's what vpp uses) on file save in Emacs.. Here's the lisp
> 
> https://gist.github.com/choppsv1/c45a857ced56d4f9713eb7a555cfba2d
> 
> in case anyone would find it useful too. Personally, I like clang-format 
> better (as it appears to have deterministic results), but that's not what the 
> project chose. :)

That was not the case some time ago when I was comparing outputs of 
clang-format 4.0 and 5.0. They were producing quite different outputs for GNU 
mode.
Maybe it is more stable today, but at that time it was quite bad...

> 
> FWIW, it only does the re-format on save if the file contains the magic 
> string:
> 
> "fd.io coding-style-patch-verification: ON"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13090): https://lists.fd.io/g/vpp-dev/message/13090
Mute This Topic: https://lists.fd.io/mt/31675798/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to