Re: [cedet-semantic] cedet - jump to definition
Brought to you by:
zappo
From: <faj...@wp...> - 2010-10-02 15:06:13
|
<style>blockquote {padding-left: 1ex; margin: 0px 0px 0px 0.8ex; border-left: #cccccc 1px solid;} p {margin: 0px;padding: 0px;} </style> <p>Hi<br /><br />Thanks for an answer. Cedet looks very promising to me. Unfortunately after a<br />couple of days I'm still not able to configure it.<br />I would like to use cedet to walk through a tags in C++ project.<br /><br />I want to place a cursor at some variable or function in my C++ source code and<br />then to execute a command semantic-ia-fast-jump (or something similar) and<br />expect CEDET to jump to its definition/declaration.<br /><br />I'm interested in a scope of my project only. I dont want to jump to any system<br />headers or another projects. My entire project is located in a single<br />/home/user/myCppProject/ directory and I want to move around only that<br />directory.<br /><br />Could you give me a COMPLETE working emacs configuration of how to accomplish that.<br /><br />I created the following configuration but it does not work.<br />Please HELP ME. It is very important to me that it is c++ code.<br /><br />I don't want to: compile my project using cedet or auto complete anything or<br />debug anything I just want to jumpt through C++ tags.<br /><br />; Load CEDET<br />(load-file "/usr/share/emacs/site-lisp/cedet/common/cedet.el")<br />(require 'cedet)<br />(global-ede-mode t)<br />(ede-cpp-root-project "MyCppProject" :file "~/myCppProject")<br />(semantic-load-enable-code-helpers)<br />(semantic-load-enable-excessive-code-helpers)<br />(require 'semantic-ia)<br />(require 'semantic-gcc)<br />(require 'semanticdb)<br />(setq semantic-load-turn-useful-things-on t)<br />(setq semanticdb-project-roots<br /> (list "~/myCppProject/"))<br />(global-semanticdb-minor-mode 1)<br />(require 'semanticdb-global)<br />(semanticdb-enable-gnu-global-databases 'c++-mode)<br /><br /><br />Thank you for help</p> <p> </p> <p>> Hi,<br />> <br />> In common/cedet.info (or texi) in the CEDET distribution there is a <br />> section on C++ configuration that covers various option.<br />> <br />> There is no "simple" in this case, since paths to projects and system <br />> headers varies wildly, and thus must be explicitly configured in <br />> non-generic projects/systems.<br />> <br />> If there is something unclear in the doc above let me know so I can fix it.<br />> <br />> Thanks<br />> Eric<br />> <br />> faj...@wp... wrote:<br />> > Hi<br />> > <br />> > I found that recent versions of cedet allow "more intelligent" c++ <br />> > source code<br />> > navigation. "more intelligent" means that now it can jump directly to the<br />> > proper member function definition in case several functions having the <br />> > same name are scattered<br />> > around distinct classes.<br />> > <br />> > Could you give me the simple configuration example of CEDET to <br />> > accomplish that.<br />> > The simplest is the best for me.<br />> > <br />> > great thanks for help<br />></p><br /> |