Pamela Carreño | 14 May 2013 10:28
Picon

How the includes statements in a cpp project are analyzed by semantic

Hi,

last week I had some problems with semantic and the include statements in my .cpp and .h files, many of the includes were not being found and analyzed by semantics

After several tries I noticed that after changing from #include <statement> to the respective #include "statement", everything started to work as expected. Is this a normal behavior? Or maybe is it related to how I defined the project using ede-cpp-root-project?

My definition is:

(ede-cpp-root-project "FLANN"
                :name "Flann1.8"
                :file "/home/carrenom/Documents/PhD/Code/Kd-Trees_NNS/Flann/CMakeLists.txt"
:include-path '("/test"
                                "/examples"
"/src/cpp/flann"
"/src/cpp/flann/algorithms"
                                "/src/cpp/flann/io"
"/src/cpp/flann/mpi"
"/src/cpp/flann/nn"
"/src/cpp/flann/util"
                               )
                :system-include-path '("/usr/include/" "/usr/include/c++/4.7/")
                :spp-table '(("isUnix" . "")
                             ("BOOST_TEST_DYN_LINK" . "")))


An example of the behaviour I am talking about 

//#include <flann/flann.h>                           NOT OK TO SEMANTIC
//#include <flann/io/hdf5.h>                        NOT OK TO SEMANTIC
#include "../src/cpp/flann/flann.h"                OK TO SEMANTIC
#include "../src/cpp/flann/io/hdf5.h"             OK TO SEMANTIC


Also I would like to know how semantic visits and analyze all the includes in the source code.

Regards,

Pamela Carreno
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
Barry OReilly | 10 May 2013 00:19
Picon

Semantic causes replace-match to leave point at wrong place

See discussion at: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14281

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
Pete Beardmore | 2 May 2013 19:32
Picon
Favicon
Gravatar

semantic-toggle-decoration-style error


hello,

using:

(semantic-load-enable-excessive-code-helpers)
(semantic-toggle-decoration-style "semantic-decoration-on-include" t)

in my .emacs i get:

eval: Wrong type argument: consp, nil

caused by defun semantic-toggle-decoration-style

     ;; Store the new flag.
     (setcdr style flag)

when style is set (via let) as nil

fix attached, cheers
Pete
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
Pete Beardmore | 18 Apr 2013 22:05
Picon
Favicon
Gravatar

Re: fix semantic-displayor-tooltip-mode verbose

Quoting Pete Beardmore <elbeardmorez <at> msn.com>:

> hello.
>
> apologies, i found a mistake in my work from 'way back when' (8092).  
> luckily this mode isn't the default!
>
> best wishes,
> Pete

[slaps head!] patch attached this time

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
Pete Beardmore | 18 Apr 2013 20:45
Picon
Favicon
Gravatar

fix semantic-displayor-tooltip-mode verbose

hello.

apologies, i found a mistake in my work from 'way back when' (8092).  
luckily this mode isn't the default!

best wishes,
Pete

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
Stephen Leake | 16 Apr 2013 16:41
Favicon

wisi-parse generalized LALR parser; fixed major bug

For those trying the generalized LALR parser at
http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html, I've just
posted a new version with a major bug fix.

The list of pending actions was built incorrectly. I'm not clear why I
didn't notice this until now!

--

-- 
-- Stephe

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
Jai Dayal | 13 Apr 2013 06:33
Picon

Cedet on Mac (latest CEDET snapshot)

I get this error:

make[2]: Nothing to be done for `all'.
make -C eieio
    > eieio.elc

In toplevel form:
eieio.el:57:1:Error: Symbol's value as variable is void: slot-unbound

Any suggestions? It's Mac OSX 10.8.3

GNU Emacs 24.3.1

Thanks,
Jai
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
Pamela Carreño | 10 Apr 2013 22:05
Picon

Problem between semantic and auto-complete

Hello,

Unfortunately I had to re-install my OS so I updated my emacs and cedet versions (I'm using the last snapshots). I'm also using the same configuration files that had worked pretty well with my c++ projects. However,  now the name auto-completion is not working.

More specifically, before re-installing my system if I started to write a variable's name, cedet showed me all the possible matches among all the variables already defined in the same file. Now I have no suggestions and I thinks it's related to how semantic and auto-complete work together.

When I'm working on different types of files (lisp, latex, org...) auto-complete works fine. Also semantic works as expected: I can jump from definitions to implementations, I can search a method definition, I can see all the members of a
particular object, and the function prototypes are showed too.

It's just the name complete that does not work, and as I'm using the same configuration files and I followed step by step the same process I used the first time to install cedet and other tools (gtags, cscope...), I can't see the cause of this problem.

Here are my configurations files:

ii) my cedet configuration based on Alex's tutorial http://pastebin.com/QkUGtkve

Can someone give me some hints about what I'm doing wrong or missing here?

Also, I'm new to cedet and I would appreciate some suggestions about how to improve my current configuration to work better on c++ projects.

Thanks,

Pamela
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
Barry OReilly | 8 Apr 2013 21:18
Picon

On Linux, semantic-ia-fast-jump fails when there are ^M in file

I found semantic-ia-fast-jump failing in a file that was definitely including the file I expected it to jump to.  This file, unlike most in our source tree, had ^M at the end of some lines.  When I replaced them with Unix newlines, semantic-ia-fast-jump started working.

Let me know if you want me to report these kinds of things to bug-gnu-emacs instead.

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
Jai Dayal | 7 Apr 2013 21:54
Picon

Emacs Code Browser for latest CEDET?

Hi,
  For some reason, I was banned from the ECB mailing list... is there an ECB that uses the latest CEDET builds?

Jai
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
Barry OReilly | 5 Apr 2013 22:50
Picon

semantic-idle-symbol-highlight-face not customizable

I noticed semantic-idle-symbol-highlight-face is defined with defvar, which prevented me from finding it in the semantic-faces customization group.  Can you make this a customizable face?  Thanks.

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic

Gmane