[CEDET-devel] trouble setting up cedet code browser options for c/c++
Brought to you by:
zappo
From: Brian B. <bri...@gm...> - 2011-02-16 21:43:20
|
Hello - This is my first message to the list, so please correct me if I need to mail to a more specific cedet list or something. I've tried several times to try to get cedet set up on my linux box. I've gone and installed emacs 23.2, and downloaded cedet 1.0 from the project page. I built cedet via: > make EMACS=emacs The config section of my .emacs is at the end of this email. Now, what seems to be working: cedet loads; folding mode seems to work in lisp-mode; semantic-complete-analyze-inline works in lisp-mode. Probably quite a few things work in languages other than C/C++. My goals (all C/C++): I want to be able to smart-autocomplete symbols, see function parameters, find all uses of a function or variable, flip between function declarations and definitions, follow functions or classes to their declarations, etc... I can't seem to make any of this work. I'm not sure what needs to be done to set up the various databases for global/ebrowse/cscope, or which is best for C/C++. We currently use cmake, so I can't use automake projects etc... so I set up my ede-cpp-root-project in my config. In my emacs messages buffer, I have this info: Loading /home/budgeb/emacs/cedet-1.0/common/cedet.el (source)... Outdated eieio 1.0 shadowed to meet minimum version 1.3 Outdated semantic 2.0pre4 shadowed to meet minimum version 2.0 Outdated ede 1.0pre4 shadowed to meet minimum version 1.0 Outdated speedbar 1.0.1 shadowed to meet minimum version 1.0.3 Outdated cedet-contrib 1.0pre4 shadowed to meet minimum version 1.0 Setting up CEDET packages...done Loading /home/budgeb/emacs/cedet-1.0/common/cedet.el (source)...done [3 times] Loading /usr/share/emacs23/site-lisp/emacs-goodies-el/color-theme-library.el (source)...done Loading /usr/share/emacs23/site-lisp/emacs-goodies-el/color-theme-library.elc...done For information about GNU Emacs and the GNU system, type <f1> C-a. Note: file is write protected //depot/RaaS/current/rsut/tests/sg_trav_example/sg_trav_example.cpp#3 - opened for edit semantic-analyze-current-context: Cannot analyze buffers not supported by Semantic I roughly followed Alex Ott's blog to get as far as I have. Any help is much appreciated. Thanks, Brian ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; CEDET Config (load-file "~/emacs/cedet-1.0/common/cedet.el") (global-ede-mode 1) (semantic-load-enable-code-helpers) (global-srecode-minor-mode 1) (require 'semantic-ia) (require 'semantic-gcc) (semantic-add-system-include "~/p4/pseb/external/dev/thirdparty/boost/boost_1_44_0/include") (semantic-add-system-include "~/p4/pseb/external/dev/thirdparty/boost/boost_1_44_0/include/boost_lockfree") ;; if you want to enable support for gnu global (require 'semanticdb-global) (semanticdb-enable-gnu-global-databases 'c-mode) (semanticdb-enable-gnu-global-databases 'c++-mode) ;; enable ctags for some languages: ;; Unix Shell, Perl, Pascal, Tcl, Fortran, Asm (semantic-load-enable-primary-exuberent-ctags-support) (ede-cpp-root-project "Test" :name "Test Project" :file "~/p4/pseb/build-script.sh" :include-path '("/Pt/include" "/rt/include" "/rt/src/rtlib/kernel/sr" "/rsut/include" ) :system-include-path '("~/p4/pseb/external/dev/thirdparty/google/sparsehash/1.10/include") ) (defun my-cedet-hook () (local-set-key [(control return)] 'semantic-ia-complete-symbol) (local-set-key "\C-c?" 'semantic-ia-complete-symbol-menu) (local-set-key "\C-c>" 'semantic-complete-analyze-inline) (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle) (local-set-key "." 'semantic-complete-self-insert) (local-set-key ">" 'semantic-complete-self-insert) (local-set-key "::" 'semantic-complete-self-insert)) (add-hook 'c-mode-common-hook 'my-cedet-hook) (global-semantic-tag-folding-mode 1) ;; end CEDET Config ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |