This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add .pd extension to c_exts.



On Fri, 30 Aug 2019, Richard Biener wrote:

> On Fri, Aug 30, 2019 at 12:58 PM Martin Liška <mliska@suse.cz> wrote:
> >
> > Hi.
> >
> > I would like to add .pd to c_exts so that one
> > can have correctly set tab width, etc.
> 
> But then it will auto-indent with too much spaces, no?

I think it's fine, the script does

  setlocal cindent
  setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,f0,h2,p4,t0,+2,(0,u0,w1,m0

so it's a bit smarter than indenting everything by 2 spaces :)

So +1 from me for the patch, but note that now we have a contrib/vim-gcc-dev
"plugin" directory, it might be more natural to add gcc-match indent rules
there.

Alexander

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]