File: CodingStyle.md

package info (click to toggle)
babeltrace2 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,660 kB
  • sloc: cpp: 106,162; ansic: 78,276; python: 27,115; sh: 9,053; makefile: 1,807; xml: 46
file content (18 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!--
SPDX-FileCopyrightText: 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

SPDX-License-Identifier: CC-BY-SA-4.0
-->

Babeltrace Coding Style

The coding style used for this project follows the the Linux kernel
guide lines, except that brackets "{", "}" should typically be used even
for single-line if/else statements. Please refer to:

- Linux kernel Documentation/CodingStyle document for details,
- Linux kernel scripts/checkpatch.pl for a script which verify the patch
  coding style.

All Python code shall be formatted using the latest version of the Black Python
code formatter.