mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinod Kone (JIRA)" <>
Subject [jira] [Commented] (MESOS-1291) Use clang-format to automatically format code to style
Date Mon, 05 May 2014 19:03:15 GMT


Vinod Kone commented on MESOS-1291:

+1. Integration into code editors and auto-formatting sounds cool. 

> Use clang-format to automatically format code to style
> ------------------------------------------------------
>                 Key: MESOS-1291
>                 URL:
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Dominic Hamon
>              Labels: style
> Instead of relying on a script to check and report style errors, we should move to a
workflow that allows people to write code how they feel comfortable and then automatically
format it to conform to our style guide.
> The Chromium style from clang-format ( is
very close to our style except for the dropped braces on class, struct, and function definitions,
and two lines of whitespace between method definitions outside a class. As such, we should
consider adopting clang-format and patching it to include a Mesos style variant.
> It can be run as part of post-reviews or as a git commit hook, or manually from within

This message was sent by Atlassian JIRA

View raw message