mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
coding-style: Document 100 chars limit for line length
The idea is to have it like a soft limit: if possible then break lines, if not then have a long line instead of some creative approach. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
3cb833fef0
commit
5f6a761899
@ -131,7 +131,7 @@ around operators and keywords:
|
|||||||
|
|
||||||
indent-libvirt()
|
indent-libvirt()
|
||||||
{
|
{
|
||||||
indent -bad -bap -bbb -bli4 -br -ce -brs -cs -i4 -l75 -lc75 \
|
indent -bad -bap -bbb -bli4 -br -ce -brs -cs -i4 -l100 -lc100 \
|
||||||
-sbi4 -psl -saf -sai -saw -sbi4 -ss -sc -cdw -cli4 -npcs -nbc \
|
-sbi4 -psl -saf -sai -saw -sbi4 -ss -sc -cdw -cli4 -npcs -nbc \
|
||||||
--no-tabs "$@"
|
--no-tabs "$@"
|
||||||
}
|
}
|
||||||
@ -141,6 +141,9 @@ further, by piping it through ``expand -i``, since some leading
|
|||||||
TABs can get through. Usually they're in macro definitions or
|
TABs can get through. Usually they're in macro definitions or
|
||||||
strings, and should be converted anyhow.
|
strings, and should be converted anyhow.
|
||||||
|
|
||||||
|
The maximum permitted line length is 100 characters, but lines
|
||||||
|
should aim to be approximately 80 characters.
|
||||||
|
|
||||||
Libvirt requires a C99 compiler for various reasons. However, most
|
Libvirt requires a C99 compiler for various reasons. However, most
|
||||||
of the code base prefers to stick to C89 syntax unless there is a
|
of the code base prefers to stick to C89 syntax unless there is a
|
||||||
compelling reason otherwise. For example, it is preferable to use
|
compelling reason otherwise. For example, it is preferable to use
|
||||||
|
Loading…
x
Reference in New Issue
Block a user