cedet

Setting up an emacs EDE-project with libraries

懵懂的女人 提交于 2019-12-05 11:20:39
I already searched the emacs documentation, the cedet website and here on SO in vain. If my question is already been answered, fell free to (point out to an existing answer and) close it. I'm trying to familiarize myself with EDE-projects in emacs. So far I can set up a simple project with one or more files. Now I'd like to separate a part of my code and pack it into a library. Basically I'm trying to achieve the same thing I get with the following hand-written naive Makefile: matrix: g++ -c -o lib/libmatrix.o lib/matrix.cpp -std=c++0x ar crf lib/libmatrix.a lib/libmatrix.o num: g++ num.cpp

emacs intellisense

亡梦爱人 提交于 2019-12-05 10:47:45
问题 I know this has been discussed a lot of times but is there any nice how-to for c/c++ intellisense in emacs? I have never been able to set up cedet properly. Right now I am working on a maintenance project with a huuge code base and it is very difficult to manage without proper intellisense. Currently I am using vim with ctags/cscope and omnicomplete features for intellisense which works great; but I would like to get things to work with emacs. 回答1: If you cannot get CEDET working, then you

seeking autocomplete functionality in emacs

匆匆过客 提交于 2019-12-05 09:51:19
I am seeking a plugin to do autocompletion popup for c++ development in emacs. what I have tried are Cedet Semantics and the Autocompletion mode , they are pretty neat in terms of completing the variable and function names as long as I have a few words already. For example, I have a class named foo and a function that returns an integer 1 class foo{ int getInt(){return 1}; }; In the main method, so long as I started typing this int main(){ foo bar; bar.get... } the plugins have no problem popping up suggestions like bar.getInt(). However, what I am really looking for is something like in

Semantic, cedet how to force parsing of source files

久未见 提交于 2019-12-05 08:29:48
I have been experimenting with cedet and semantic in my emacs c/c++ development setup and I am quite satisfied with it except for one small detail. I use ede-cpp-root-project to create a project and give the root directory of my project along with the directories where include files reside like below: (ede-cpp-root-project "My Project" :name "My Project" :file "/path/to/rootdir/AFILE" :include-path '( "/include2" "/include1" ) ) This allows me to easily jump to the declarations of functions with semantic-ia-fast-jump but it does not get me to the definitions of those functions. So it seems to

Putting CEDET ede-cpp-root-project commands outside the .emacs file

一世执手 提交于 2019-12-04 17:56:46
I have a working EDE project, but I would like to locate the command in a file in the source tree for that project and not in my .emacs file. Is this possible? I have tried using directory variables and emacs loads the file, but it does have any affect. To do this I placed the following code in .dir-locals.el in the project root: ((nil . ((ede-cpp-root-project "MyProj" :name "MyProj Project" :file "/home/jlisee/projects/myproj_code/CMakeLists.txt" :include-path '( "/packages" ) :system-include-path '( "/opt/myproj/local/include" ) :spp-table '( ("CONST" . "const") ) )))) The project type ede

How can I tell if CEDET is using GNU Global?

这一生的挚爱 提交于 2019-12-04 11:57:00
I have CEDET working for the most part on emacs 24.2 with the latest from bzr repository. When I am searching for symbols or definitions, I see that the cedet mini-buffer shows parses through a lot of files, some that are not there as header-files, the files do not have any reference to the symbols I am searching. I will leave CEDET to its job, let it search for symbols as it sees fit. Is there any debug mechanism or verbose mode that I can turn on to see 1) What are all the files it is searching. 2) If it has found the GTAGS file at the base of my project. I understand that CEDET only

Getting started with CEDET

不问归期 提交于 2019-12-04 04:54:10
Try as I might, I can't get CEDET to do anything. Emacs 24.3. I downloaded the most recent CEDET snapshot. I took Alex Ott's setup file from the bottom of his (not so) Gentle Introduction , and changed the first line to point to my cedet-bzr. I visited hello_world.cpp. I execute M-x semantic-mode. Now what do I do? Should anything look different? (It doesn't.) A glance at Alex's setup file suggests that C-c? should do something, but Emacs complains that that key combination is not bound. I really need some hand-holding here! Edit: I really think the problem might be: "What do I do next?" How

Strange semantic error

此生再无相见时 提交于 2019-12-04 02:30:38
I have reinstalled emacs 24.2.50 on a new linux host and started a new dotEmacs config based on magnars emacs configuration. Since I have used CEDET to some success in my previous workflow I started configuring it. However, there is some strange behaviour whenever I load a C++ source file. [This Part Is Solved] As expected, semantic parses all included files (and during the initial setup parses all files specified by the semantic-add-system-include variables), but it prints this an error message that goes like this: WARNING: semantic-find-file-noselect called for /usr/include/c++/4.7/vector

emacs intellisense

不想你离开。 提交于 2019-12-03 23:01:54
I know this has been discussed a lot of times but is there any nice how-to for c/c++ intellisense in emacs? I have never been able to set up cedet properly. Right now I am working on a maintenance project with a huuge code base and it is very difficult to manage without proper intellisense. Currently I am using vim with ctags/cscope and omnicomplete features for intellisense which works great; but I would like to get things to work with emacs. If you cannot get CEDET working, then you could use auto-complete.el combined with CTAGS or just words-in-buffer or words-in-all-buffers. For what it's

How to create an EDE project for C++

佐手、 提交于 2019-12-03 07:15:13
I have been trying to set up an EDE project for C++ (emacs24 + builtin CEDET) and I'm starting to get desperate because I can't seem to find the way I want the makefiles to be generated. I'm relatively new to Emacs. I'll try to describe what I'm doing: I have a toy project set like so: main.cpp other/ Utils.cpp Utils.h CGrabBuffer.cpp CGrabBuffer.h main.cpp includes both .h's inside the "other/" directory. These are the steps I follow to set up an EDE project with this simple directory setup: Open main.cpp in emacs and do M-x ede-new ; type: Make ; name: main-proj . Open one of the files in