From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: clang vs free software Date: Tue, 21 Jan 2014 17:38:13 +0100 Message-ID: References: <87fvqtg02v.fsf@flea.lifelogs.com> <3496352.tEhiuvcQfN@descartes> <3251502.USOysJnPn3@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390322324 13216 80.91.229.3 (21 Jan 2014 16:38:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2014 16:38:44 +0000 (UTC) Cc: John Yates , Stefan Monnier , Richard Stallman , David Engster , emacs-devel@gnu.org To: =?iso-8859-1?Q?R=FCdiger?= Sonderfeld Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 21 17:38:50 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W5eLe-0007Tu-Ur for ged-emacs-devel@m.gmane.org; Tue, 21 Jan 2014 17:38:47 +0100 Original-Received: from localhost ([::1]:59374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5eLe-0002S8-IP for ged-emacs-devel@m.gmane.org; Tue, 21 Jan 2014 11:38:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5eLV-0002LN-8m for emacs-devel@gnu.org; Tue, 21 Jan 2014 11:38:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5eLN-0004zH-7y for emacs-devel@gnu.org; Tue, 21 Jan 2014 11:38:37 -0500 Original-Received: from mx1.bahnhof.se ([213.80.101.11]:60495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5eLM-0004zD-Pw; Tue, 21 Jan 2014 11:38:29 -0500 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx1-reinject (Postfix) with ESMTP id 7C15D8ABFBE; Tue, 21 Jan 2014 17:38:27 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF4) Original-Received: from mf4.bahnhof.se ([127.0.0.1]) by localhost (mf4.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VCckzO1dEjZI; Tue, 21 Jan 2014 17:38:24 +0100 (CET) Original-Received: from mta.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf4.bahnhof.se (Postfix) with ESMTP id 3C87F3D783C; Tue, 21 Jan 2014 17:38:23 +0100 (CET) Original-Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id D86024E7819; Tue, 21 Jan 2014 16:38:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at verona.se Original-Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 67unjlGLLyss; Tue, 21 Jan 2014 17:38:13 +0100 (CET) Original-Received: from exodia.verona.se (www.verona.se [192.168.200.15]) by mta.verona.se (Postfix) with ESMTP id 2B6C64E7813; Tue, 21 Jan 2014 17:38:13 +0100 (CET) In-Reply-To: <3251502.USOysJnPn3@descartes> (=?iso-8859-1?Q?=22R=FCdiger?= Sonderfeld"'s message of "Tue, 21 Jan 2014 17:34:10 +0100") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-Received-From: 213.80.101.11 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168839 Archived-At: R=FCdiger Sonderfeld writes: > On Tuesday 21 January 2014 17:25:59 joakim@verona.se wrote: >> > GCC provides a plugin interface now which can be used to extract >> > information about the source. I started writing a plugin and Emacs >> > interface based on that. It can show the callgraph, jump to definitio= n, >> > and show some information about symbols. You simply add it to your >> > normal compiler call. But I didn't get very far and it requires a patc= hed >> > version of the gcc-python plugin. >> >=20 >> > I hope I'll find enough time to continue working on it. Maybe Clang >> > provides better integration. But without an FFI it would have to be >> > linked into Emacs. And GCC is the main compiler I use anyway. >>=20 >> Interesting. Do you know if the interfaces you use are also provided via >> gnome object introspection? Then I would love to try it out using the >> Emacs Xwidget branch, which provides an attempt at a GIR bridge for emac= s. > > I'm not loading any library in Emacs itself. I have written plugins for = GCC.=20=20 > They are loaded during the compile process (add -fplugin=3D./gccetags.so = to the=20 > CXXFLAGS) and write data to a file. For gcc-etags to a file in etag form= at=20 > and for the other experiment a sexp. > > I haven't really looked at libclang. Which could be loaded through an FF= I. I=20 > doubt that they are using Glib though or what would be needed for gnome o= bject=20 > introspection. I meant if gcc could provide the feature you use via gir. > Regards, > R=FCdiger > --=20 Joakim Verona