public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Jesper Broge Jørgensen" <jesperbroge@gmail.com>
To: "Manuel López-Ibáñez" <lopezibanez@gmail.com>,
	"Bernd Schmidt" <bschmidt@redhat.com>,
	gcc-patches@gcc.gnu.org
Subject: Re: genattrab.c generate switch
Date: Mon, 18 Jan 2016 22:44:00 -0000	[thread overview]
Message-ID: <569D6AD7.7050400@gmail.com> (raw)
In-Reply-To: <569D2356.3050905@gmail.com>


On 18/01/16 18:39, Manuel López-Ibáñez wrote:
> On 18/01/16 14:39, Jesper Broge Jørgensen wrote:
>> No i have not gone through copyright assignment.
>> This is my first time trying to contribute to a GNU project so i have 
>> tried
>> following the "Contributing to GCC"@
>> https://gcc.gnu.org/contribute.html
>> There i followed the advice to run the patch through 
>> contrib/check_GNU_style.sh
>> and it came out clean. Maybe contrib/check_GNU_style.sh does not 
>> check for
>> indention rules and/or my editor is set up wrongly so it looked to me 
>> like i
>> was following the coding standard.
>
> Hi Jesper,
>
> Unfortunately, https://gcc.gnu.org/contribute.html is quite hard to 
> follow and outdated. I would suggest to start here: 
> https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps
>
> From there, you'll get to https://gcc.gnu.org/wiki/FormattingCodeForGCC
>
> If you know how to improve those pages, for example extending them to 
> other editors, I can give you write access.
>
> Cheers,
>
> Manuel.
>
Hi

I found a formatting tool called uncrustify that comes with a gnu style 
config 
https://github.com/bengardner/uncrustify/blob/master/etc/gnu-indent.cfg 
that needed a few tweaks to format code that looked what is already in 
gcc/genattrtab.c

The tweaks was:

indent_with_tabs = 2 // instead of 0
sp_func_def_paren     = add // instead of remove
sp_func_proto_paren  = add // instead of remove
sp_func_call_paren     = add // instead of remove

So now the code should be correctly formatted.
Do i send in a new patch or just respond to the old one with the new 
changes?

I have also followed instructions at 
https://gcc.gnu.org/ml/gcc/2003-06/txt00010.txt to get copyright 
assignment though i have not yet received a reply.

  reply	other threads:[~2016-01-18 22:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-13  0:53 Jesper Broge Jørgensen
2016-01-18 14:15 ` Bernd Schmidt
2016-01-18 14:22   ` Jakub Jelinek
2016-01-18 14:39   ` Jesper Broge Jørgensen
2016-01-18 17:39     ` Manuel López-Ibáñez
2016-01-18 22:44       ` Jesper Broge Jørgensen [this message]
2016-01-19 12:18         ` Bernd Schmidt
2016-02-01 18:11           ` Jesper Broge Jørgensen
2016-02-01 19:20 ` Patrick Palka
2016-02-01 20:05   ` Jesper Broge Jørgensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=569D6AD7.7050400@gmail.com \
    --to=jesperbroge@gmail.com \
    --cc=bschmidt@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=lopezibanez@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).