From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85317 invoked by alias); 30 Nov 2016 17:59:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 85296 invoked by uid 89); 30 Nov 2016 17:59:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Emacs, eclipse, our, instructed X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Nov 2016 17:59:02 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC99k-00019d-9f for gdb-patches@sourceware.org; Wed, 30 Nov 2016 12:59:00 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC99k-00019Z-6u; Wed, 30 Nov 2016 12:58:56 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2516 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cC99i-0005WU-I0; Wed, 30 Nov 2016 12:58:55 -0500 Date: Wed, 30 Nov 2016 17:59:00 -0000 Message-Id: <83twaoq278.fsf@gnu.org> From: Eli Zaretskii To: Simon Marchi CC: jhb@freebsd.org, palves@redhat.com, gdb-patches@sourceware.org In-reply-to: (message from Simon Marchi on Wed, 30 Nov 2016 11:50:59 -0500) Subject: Re: [PATCH 1/3] Fix mismatched struct vs class tags. Reply-to: Eli Zaretskii References: <20161123200652.89209-1-jhb@FreeBSD.org> <1573845.CKxfuZpZBq@ralph.baldwin.cx> <31fa3dbd-e1d1-1fd2-7774-8bc82fd8b37d@redhat.com> <1853167.ixQKmG4D0P@ralph.baldwin.cx> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg01006.txt.bz2 > Date: Wed, 30 Nov 2016 11:50:59 -0500 > From: Simon Marchi > Cc: Pedro Alves , 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.