|
Re: [cedet-semantic] not to parse system libraries
From: <fajfusio@wp...> - 2010-10-26 07:42
|
> > Hi
> >
> > How can I force cedet not to parse system libraries.
> > I would like cedet to look only in my c++ project. I tried to configure
> it via
> > the system-include-path as follows but it did not help.
> >
> > I use:
> > emacs 23
> > cedet 1.0_pre7-r1
> >
> > ~/.emacs:
> > ; Load CEDET
> > (load-file "/usr/share/emacs/site-lisp/cedet/common/cedet.el")
> > (global-ede-mode t)
> > (semantic-load-enable-code-helpers)
> > (ede-cpp-root-project "myProj"
> > :name "myProj"
> > :file "~/myProj/main.cpp"
> > :system-include-path '("")
> > )
> >
> > thank you for help
>
> Hi
>
> I added semantic-c-dependency-system-include-path set to nil but still no
> success.
> Please help me to force cedet not to parse system headers.
>
> My current ~/.emacs looks as follows:
>
> ~/.emacs:
> (load-file "/usr/share/emacs/site-lisp/cedet/common/cedet.el")
> (global-ede-mode t)
> (semantic-load-enable-code-helpers)
> (ede-cpp-root-project "myProj"
> :name "myProj"
> :file "~/myProj/main.cpp"
> :system-include-path '("")
> :include-path '("")
> )
> '(semantic-c-dependency-system-include-path nil)
Looks like I found the necessary command:
(semantic-remove-system-include "/usr/include/" 'c++-mode)
Unfortunately it works only when I execute it directly in emacs. It does
not
have an effect in ~/.emacs file. I placed it at the end of my ~/.emacs
file:
(load-file "/usr/share/emacs/site-lisp/cedet/common/cedet.el")
(global-ede-mode t)
(semantic-load-enable-code-helpers)
(ede-cpp-root-project "myProj"
:name "myProj"
:file "~/myProj/main.cpp"
)
(semantic-remove-system-include "/usr/include/" 'c++-mode)
Do you know what's wrong with my emacs configuration ?
thank you for help
|
| Thread | Author | Date | |
|---|---|---|---|
| Re: [cedet-semantic] not to parse system libraries | <fajfusio@wp...> |
|
|
|
|
|
|
|