unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Abdellatif El Khlifi <elkhlifiabdellatif@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: C preprocessor defines not taken into account by Cedet/Semantic
Date: Mon, 5 Sep 2011 21:30:27 +0100	[thread overview]
Message-ID: <CAE+oAxAAGXy4pr7xH3apfJbbnjpFAX4uAn56yKOytErbfULhmg@mail.gmail.com> (raw)
In-Reply-To: <yer53uorbz.fsf@news.eternal-september.org>

[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]

Is there a way to tell to CEDET, don't use your preprocessor. I've the mine.
And then I give the gcc command line I want (already tested on my project
and do preprocessing correctly) ?

On Mon, Sep 5, 2011 at 6:02 PM, Richard Riley <rileyrg@googlemail.com>wrote:

> Steve Revilak <steve@srevilak.net> writes:
>
> >>From: Abdellatif El Khlifi
> >
> >>I am trying to use Emacs as an IDE in my Linux kernel development
> projects.
> >>So I installed CEDET and GNU Global (gtags) with no problems.
> >>
> >>When I open a C source code belonging to my Linux kernel source folder,
> the
> >>linux project is detected automatically. Functions, variables, headers
> and
> >>other keywords are highlighted correctly.
> >>
> >>Through the ~/.emacs file I configured semantic's code completion and
> >>intellisense. So when I press C-<SPC> the code completion menu appears
> and I
> >>can choose what's needed.
> >>
> >>The issue is when I use preprocessor defines, the intellisense system
> shows
> >>the menu on the current location but doesn't detect the right things when
> >>invoked (C-<SPC>). Even I close and restart emacs the same behavior is
> >>reproduced.
> >
> > I thought that global didn't index preprocessor defines.
> >
>
> No, but Cedet should/could/does. It parses the C++ itself.
>
>
>
>
>


-- 
Abdellatif El Khlifi
abdellatif@ieee.org
http://abdellatif.emurse.com/

[-- Attachment #2: Type: text/html, Size: 2093 bytes --]

      reply	other threads:[~2011-09-05 20:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-04 14:46 C preprocessor defines not taken into account by Cedet/Semantic Abdellatif El Khlifi
2011-09-05 16:57 ` Steve Revilak
2011-09-05 17:02   ` Richard Riley
2011-09-05 20:30     ` Abdellatif El Khlifi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAE+oAxAAGXy4pr7xH3apfJbbnjpFAX4uAn56yKOytErbfULhmg@mail.gmail.com \
    --to=elkhlifiabdellatif@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).