Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions docs/markdown/Style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Meson build files.

## Tabs or spaces?

Always spaces.
Always spaces. Two spaces is the most common.

## Trailing commas?

Yes, where possible. They help make nicer diffs in version control systems.

## Naming Variable

Expand Down Expand Up @@ -70,7 +74,7 @@ normal files. This rule also applies recursively for subdirectories.
The following example shows correct source list definition:

```meson
sources = files([
sources = files(
'aaa/a1.c',
'aaa/a2.c',
'bbb/subdir1/b1.c',
Expand All @@ -82,6 +86,6 @@ sources = files([
'f1.c',
'f2.c',
'f10.c',
'f20.c'
])
'f20.c',
)
```