Re: [CEDET-devel] Problems About Semantic
Brought to you by:
zappo
From: David E. <de...@ra...> - 2013-12-21 09:52:05
|
Eric M. Ludlam writes: > On 12/20/2013 08:19 AM, 朱仲书 wrote: >> I have a small problem about the parser. When I am using the linear >> algebra library called "Eigen" in my code, I find the company-mode can't >> work for this library. Because the semantic will not parse the header >> files without any suffix, for example "Dense" instead of "Dense.h" .When >> I add the suffix .h, it works well. >> After this, I write a simple header file without suffix .h, the same >> problem happens again. I really don't know how to deal with it, so I use >> CB now... >> Please give me some suggestions ,many thanks!! > > If you can't edit them, add something to your auto-mode-alist, such as: > > (add-to-list 'auto-mode-alist '("^/path/to/some/headers/" . c++-mode) t) > > to force that stuff to be in C++ mode. While this should work, don't be surprised if you don't get the right completions. The Eigen library is incredibly complicated C++ code and makes heavy use of static polymorphism (CRTP) and expression templates, which Semantic cannot fully understand. Also, it generates types through pretty complex preprocessor trickery. -David |