unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Cedet cannot complete C++ standard class
@ 2013-07-05 16:01 augustinus
  2013-07-07  3:41 ` XeCycle
  0 siblings, 1 reply; 3+ messages in thread
From: augustinus @ 2013-07-05 16:01 UTC (permalink / raw)
  To: help-gnu-emacs

Hi guys:
I get a problem when i use the built-in cedet to write C++ code. It is
that cedet can not complete the standard C++ class such as string and
vector ... But cedet can complete the classes defined by me.And there is
no data in the semanticdb directory about C++ standard headers, I think
it cases the problem but I don't know what to do to make it work!
Here is my cedet setting:

(require 'cedet)
(setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
global-semanticdb-minor-mode
global-semantic-idle-summary-mode
global-semantic-mru-bookmark-mode))
(semantic-mode 1)

(global-semantic-decoration-mode)

(require 'semantic/bovine/gcc)
(require 'semantic/bovine/c)

(defconst cedet-user-include-dirs
(list ".." "../include" "../inc" "../common" "../public" "."
"../.." "../../include" "../../inc" "../../common" "../../public"))

(setq cedet-sys-include-dirs (list
"/usr/include"
"/usr/include/bits"
"/usr/include/gnu"
"/usr/local/include"))

(let ((include-dirs cedet-user-include-dirs))
(setq include-dirs (append include-dirs cedet-sys-include-dirs))
(mapc (lambda (dir)
(semantic-add-system-include dir 'c++-mode)
(semantic-add-system-include dir 'c-mode))
include-dirs))

(setq semantic-c-dependency-system-include-path "/usr/include/")

(setq semanticdb-default-save-directory
(expand-file-name "~/.emacs.d/semanticdb"))

(provide 'cedet-setting)

Is there anyone have ideas about this problem?
Thank you!!!




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cedet cannot complete C++ standard class
  2013-07-05 16:01 Cedet cannot complete C++ standard class augustinus
@ 2013-07-07  3:41 ` XeCycle
  2013-07-07  5:08   ` Hongxu Chen
  0 siblings, 1 reply; 3+ messages in thread
From: XeCycle @ 2013-07-07  3:41 UTC (permalink / raw)
  To: help-gnu-emacs

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

augustinus <saintaugustinus@gmail.com> writes:

> Hi guys:
> I get a problem when i use the built-in cedet to write C++ code. It is
> that cedet can not complete the standard C++ class such as string and
> vector ... But cedet can complete the classes defined by me.And there is
> no data in the semanticdb directory about C++ standard headers, I think
> it cases the problem but I don't know what to do to make it work!
> Here is my cedet setting:

If you use CEDET only for its completion, throw it away.

Use clang-based completion packages.  Those are slightly easier
to setup, and significantly faster.

-- 
Carl Lei (XeCycle)
Department of Physics and Astronomy, SJTU
OpenPGP public key: 7795E591

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 489 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cedet cannot complete C++ standard class
  2013-07-07  3:41 ` XeCycle
@ 2013-07-07  5:08   ` Hongxu Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Hongxu Chen @ 2013-07-07  5:08 UTC (permalink / raw)
  To: XeCycle; +Cc: help-gnu-emacs

XeCycle <XeCycle@Gmail.com> writes:

> augustinus <saintaugustinus@gmail.com> writes:
>
>> Hi guys:
>> I get a problem when i use the built-in cedet to write C++ code. It is
>> that cedet can not complete the standard C++ class such as string and
>> vector ... But cedet can complete the classes defined by me.And there is
>> no data in the semanticdb directory about C++ standard headers, I think
>> it cases the problem but I don't know what to do to make it work!
>> Here is my cedet setting:
>
> If you use CEDET only for its completion, throw it away.
>

Definitely. Although cedet is really amazing, it sucks most of the time,
especially for C++.

Apart from code completion, I don't think speedbar is really helpful:
either inaccurate(default) or unintuitive(with semantics). in this sense
I do miss the `tagbar' plugin in Vim(although it still lacks enough
support for C++).

> Use clang-based completion packages.  Those are slightly easier
> to setup, and significantly faster.

-- 
Regards,
Hongxu Chen



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-07  5:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-05 16:01 Cedet cannot complete C++ standard class augustinus
2013-07-07  3:41 ` XeCycle
2013-07-07  5:08   ` Hongxu Chen

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).