[PATCH] devel/uncrustify: add line length limits.

classic Classic list List threaded Threaded
3 messages Options
David Bremner-2 David Bremner-2
Reply | Threaded
Open this post in threaded view
|

[PATCH] devel/uncrustify: add line length limits.

A generous limit of 102 is chosen to moderate the amount of resulting
reformatting.
---
 devel/uncrustify.cfg | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/uncrustify.cfg b/devel/uncrustify.cfg
index c36c33d6..d203d4e1 100644
--- a/devel/uncrustify.cfg
+++ b/devel/uncrustify.cfg
@@ -119,3 +119,9 @@ cmt_star_cont = true
 # indent_brace = 0
 
 indent_class = true
+
+# line width / line splitting
+code_width            102
+ls_for_split_full     True
+ls_func_split_full    True
+ls_code_width         True
--
2.30.1
_______________________________________________
notmuch mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Tomi Ollila-2 Tomi Ollila-2
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] devel/uncrustify: add line length limits.

On Sun, Mar 07 2021, David Bremner wrote:

> A generous limit of 102 is chosen to moderate the amount of resulting
> reformatting.

LGTM

Tomi


> ---
>  devel/uncrustify.cfg | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/devel/uncrustify.cfg b/devel/uncrustify.cfg
> index c36c33d6..d203d4e1 100644
> --- a/devel/uncrustify.cfg
> +++ b/devel/uncrustify.cfg
> @@ -119,3 +119,9 @@ cmt_star_cont = true
>  # indent_brace = 0
>  
>  indent_class = true
> +
> +# line width / line splitting
> +code_width            102
> +ls_for_split_full     True
> +ls_func_split_full    True
> +ls_code_width         True
> --
> 2.30.1
> _______________________________________________
> notmuch mailing list -- [hidden email]
> To unsubscribe send an email to [hidden email]
_______________________________________________
notmuch mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
David Bremner-2 David Bremner-2
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] devel/uncrustify: add line length limits.

In reply to this post by David Bremner-2
David Bremner <[hidden email]> writes:

> A generous limit of 102 is chosen to moderate the amount of resulting
> reformatting.

applied to master.

d
_______________________________________________
notmuch mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]