Setting up editors for the GNU/GCC coding style?

Alexander Monakov amonakov@ispras.ru
Thu Jul 28 19:00:21 GMT 2022


On Thu, 28 Jul 2022, David Malcolm via Gcc wrote:

> Is there documentation on setting up text editors to work with our
> coding style?  A lot of the next generation of developers aren't using
> vi or emacs; they's using VS Code, CLion, and other editors.  Does
> anyone have docs on e.g. how to set up VS Code, CLion, etc (IntelliJ ?)
> to work well on GCC's own code base.  FWIW I use Emacs; I've dabbed
> with VS Code but haven't used it "for real".
> 
> I'm hoping to add this to my newbies guide.

The tricky part is setting it up so it doesn't die indexing the codebase
(e.g. adding the entire toplevel directory probably won't work: it will
try to index the testsuites).

FWIW, CLion documentation shows how to select GNU coding style, but as
above, that's not the main worry:
https://www.jetbrains.com/help/clion/predefined-code-styles.html

Alexander


More information about the Gcc mailing list