Re: [PATCH 1/3] Fix mismatched struct vs class tags.

Eli Zaretskii
2016-11-30T17:59:13Z

> Date: Wed, 30 Nov 2016 11:50:59 -0500
> From: Simon Marchi <simon.marchi@polymtl.ca>
> Cc: Pedro Alves <palves@redhat.com>, gdb-patches@sourceware.org
>
> > I assume a massive .c -> .cc
> > (or .cxx, etc.) rename is not in the roadmap (it would presumably be
> > very
> > disruptive to pending patchsets)?
>
> I think it will have to be done at some point... it will be a bit weird
> and counter intuitive for newcomers to see .c files containing C++.
> That, and analysis tools that select the language based on the
> extension. For example, I use Eclipse CDT for my development, and it
> assumes C code for .c files by default. I can go change some obscure
> setting to force it to consider it as C++, but it would be nicer for
> everybody if we didn't have to do that. Actually, I just checked and
> it's the same with vim and emacs.

For Emacs, we could have a .dir-locals.el file in the tree which
instructed Emacs to enter C++ mode in the *.c and *.h files in our
tree.