[PATCH] Add .pd extension to c_exts.

Richard Biener richard.guenther@gmail.com
Fri Aug 30 13:54:00 GMT 2019


On Fri, Aug 30, 2019 at 2:31 PM Alexander Monakov <amonakov@ispras.ru> wrote:
>
>
>
> 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.

Yeah, that would be better than claiming .pd is C ...

Richard.

>
> Alexander



More information about the Gcc-patches mailing list