From: lender <lenderclvt@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Semantic with C++
Date: Fri, 05 Jul 2013 23:55:30 +0800 [thread overview]
Message-ID: <51D6EC72.2090807@gmail.com> (raw)
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!!!
next reply other threads:[~2013-07-05 15:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-05 15:55 lender [this message]
2013-07-06 8:05 ` Semantic with C++ Aurélien Aptel
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51D6EC72.2090807@gmail.com \
--to=lenderclvt@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.