From: Brian Paul Date: Mon, 25 May 2015 16:18:35 +0000 (-0600) Subject: docs: update the coding style information X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6184f84b7227e1548947e42bca3ff3ddb7e379c;p=mesa.git docs: update the coding style information This hasn't been updated in a long time and from recent discussion on the mailing list, it's not always clear what's expected. Hopefully, this will help a bit. v2: document function brace placement, per Thomas Helland. Reviewed-by: Thomas Helland --- diff --git a/docs/devinfo.html b/docs/devinfo.html index e068d87da13..f5113b0bd72 100644 --- a/docs/devinfo.html +++ b/docs/devinfo.html @@ -28,97 +28,118 @@

Coding Style

-Mesa's code style has changed over the years. Here's the latest. +Mesa is over 20 years old and the coding style has evolved over time. +Some old parts use a style that's a bit out of date. +If the guidelines below don't cover something, try following the format of +existing, neighboring code.

-Comment your code! It's extremely important that open-source code be -well documented. Also, strive to write clean, easily understandable code. +Basic formatting guidelines

-

-3-space indentation -

- -

-If you use tabs, set them to 8 columns -

+

Submitting patches