On Wed, 2014-03-05 at 15:46 +0800, lin zuojian wrote: > On Wed, Mar 05, 2014 at 11:29:07AM +0400, Yury Gribov wrote: > > >That is not true. The indentation style is: > > >http://www.gnu.org/prep/standards/standards.html#Formatting > > >... > > >The above also mentions particular options > > >for GNU indent which set various rules. > > > > Ah, good to know. So, are contributors expected to run indent on > > their changes before sending patches? Or maybe add some checks to > > check_GNU_style.sh? > > > > -Y > Yeah.Very good if there is such a script.
FWIW for emacs, there was a config file .dir-locals.el added last October in r203715 which makes emacs automatically follow the GNU indentation conventions when within the gcc sources. It sounds like something similar, for vim, would be useful for you. I don't know if such a thing already exists. Hope this is helpful Dave