From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by sourceware.org (Postfix) with ESMTPS id D5C843858D33 for ; Thu, 28 Jul 2022 19:00:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D5C843858D33 Received: from [10.10.3.121] (unknown [10.10.3.121]) by mail.ispras.ru (Postfix) with ESMTPS id 2407940755E1; Thu, 28 Jul 2022 19:00:21 +0000 (UTC) Date: Thu, 28 Jul 2022 22:00:21 +0300 (MSK) From: Alexander Monakov To: David Malcolm cc: gcc@gcc.gnu.org Subject: Re: Setting up editors for the GNU/GCC coding style? In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2022 19:00:24 -0000 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