[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IDE
From: |
Eli Zaretskii |
Subject: |
Re: IDE |
Date: |
Mon, 12 Oct 2015 19:12:24 +0300 |
> From: Oleh Krehel <address@hidden>
> Cc: martin rudalics <address@hidden>, Eli Zaretskii <address@hidden>,
> address@hidden, address@hidden
> 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
> #<overlay from 1 to 26 in main.cc>)
> ("qfont.h"
> include
> nil
> nil
> #<overlay from 27 to 45 in main.cc>)
> ("qpushbutton.h"
> include
> nil
> nil
> #<overlay from 46 to 70 in main.cc>)
> ("main"
> function
> (:arguments (("argc"
> variable
> (:type "int")
> (reparse-symbol arg-sub-list)
> #<overlay from 81 to 90 in main.cc>)
> ("argv"
> variable
> (:pointer 1
> :dereference 1
> :type "char")
> (reparse-symbol arg-sub-list)
> #<overlay from 91 to 104 in main.cc>))
> :type "int")
> nil
> #<overlay from 72 to 205 in main.cc>))
>
> 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.
- Re: IDE, (continued)
- Re: IDE, Dmitry Gutov, 2015/10/15
- Re: IDE, Dmitry Gutov, 2015/10/11
- Re: IDE, Oleh Krehel, 2015/10/12
- Re: IDE, Eli Zaretskii, 2015/10/12
- Re: IDE, Steinar Bang, 2015/10/12
- Re: IDE, Dmitry Gutov, 2015/10/15
- Re: IDE, Oleh Krehel, 2015/10/12
- Re: IDE, Óscar Fuentes, 2015/10/12
- Re: IDE, Oleh Krehel, 2015/10/12
- Re: IDE, Eli Zaretskii, 2015/10/15
- Re: IDE,
Eli Zaretskii <=
- Re: IDE, Dmitry Gutov, 2015/10/15
- Re: IDE, Oleh Krehel, 2015/10/15
- Re: IDE, Dmitry Gutov, 2015/10/15
- RE: IDE, Drew Adams, 2015/10/12
- Re: IDE, Dmitry Gutov, 2015/10/15
- RE: IDE, Drew Adams, 2015/10/12
- Re: IDE, Dmitry Gutov, 2015/10/12
- Re: IDE, Eric Ludlam, 2015/10/15
- Re: IDE, Eli Zaretskii, 2015/10/11
- Re: IDE, Dmitry Gutov, 2015/10/11