From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: IDE Date: Mon, 12 Oct 2015 19:12:24 +0300 Message-ID: <83612coyl3.fsf@gnu.org> References: <5612E996.7090700@yandex.ru> <83bnc7tavr.fsf@gnu.org> <5618C92A.3040207@yandex.ru> <83a8rrt9ag.fsf@gnu.org> <5618D376.1080700@yandex.ru> <831td3t62e.fsf@gnu.org> <5618E51D.4070800@yandex.ru> <83twpzrp05.fsf@gnu.org> <5618ED93.8000001@yandex.ru> <83lhbbrnn7.fsf@gnu.org> <56191D6B.8040405@yandex.ru> <838u7assvj.fsf@gnu.org> <561A3582.5080806@yandex.ru> <561A3756.1010404@gmx.at> <561A41CA.6060908@yandex.ru> <87io6c5ov5.fsf@gmail.com> <561B999D.2060900@yandex.ru> <871td0460p.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444666386 14846 80.91.229.3 (12 Oct 2015 16:13:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2015 16:13:06 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org, adatgyujto@gmail.com, dgutov@yandex.ru To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 12 18:12:53 2015 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 1ZlfiV-0005ph-Qi for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 18:12:51 +0200 Original-Received: from localhost ([::1]:56449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfiV-0005qV-8g for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 12:12:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlfi9-0005pS-FG for emacs-devel@gnu.org; Mon, 12 Oct 2015 12:12:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlfi6-0007Vx-23 for emacs-devel@gnu.org; Mon, 12 Oct 2015 12:12:29 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:46093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlfi5-0007Vs-Q4 for emacs-devel@gnu.org; Mon, 12 Oct 2015 12:12:25 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NW400D007IZ7R00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 12 Oct 2015 19:12:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW400DQL7OC1CA0@a-mtaout20.012.net.il>; Mon, 12 Oct 2015 19:12:13 +0300 (IDT) In-reply-to: <871td0460p.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:191361 Archived-At: > From: Oleh Krehel > Cc: martin rudalics , Eli Zaretskii , adatgyujto@gmail.com, emacs-devel@gnu.org > Date: Mon, 12 Oct 2015 14:37:26 +0200 > > > Having the whole GCC as a dependency might be problematic, but that's > > not the #1 problem. AFAIK, GCC currently has no "code completion" > > feature anywhere. > > There's no need for a specific "code completion" feature. Take this code > for example: > > #include "qapplication.h" > #include "qfont.h" > #include "qpushbutton.h" > > int main(int argc, char *argv[]) { > QApplication app(argc, argv); > QPushButton quit("Quit"); > quit. > > return 0; > } > > Here's what (semantic-fetch-tags) returns: > > (("qapplication.h" > include > nil > nil > #) > ("qfont.h" > include > nil > nil > #) > ("qpushbutton.h" > include > nil > nil > #) > ("main" > function > (:arguments (("argc" > variable > (:type "int") > (reparse-symbol arg-sub-list) > #) > ("argv" > variable > (:pointer 1 > :dereference 1 > :type "char") > (reparse-symbol arg-sub-list) > #)) > :type "int") > nil > #)) > > A similar data structure *has* to be somewhere in the GCC innards: it's > a first step for compilation. In addition, this information is used to > point out compilation errors/warnings. See the documentation of the various -fdump-rtl-* switches to GCC. Or maybe you want the -dx switch.