Am 22.02.2012 um 14:01 schrieb Eric M. Ludlam:
> On 02/19/2012 01:59 PM, Nikolaus Demmel wrote:
>> let me follow this up instead of Andrzej. I was asking him this question originally, since he was the one suggesting CEDET to me a while ago, and I'm now the one actually having this problem.
>> I should mention that I am using newtrunk.
>> Am 17.02.2012 um 03:21 schrieb Eric M. Ludlam:
>>> On 02/16/2012 11:00 AM, Andrzej Pronobis wrote:
>>>> There seems to be a problem with semantic parser omitting all files
>>>> not having one of typical c header/source file extensions. This
>>>> prevents semantic from completing and listing members for STL classes.
>>>> Is there some simple workaround?
>>> It should be able to find them as long as you #include them, and they
>>> are on your path. Usually semantic-gcc.el will identify where to find
>>> them automatically. To verify, if you enable the decoration-mode for
>>> special tags, you can right-click on the include, and it will tell you
>>> if it knows where it is.
>> Ok, right-clicking gives me "m3 not found", but I guess that is an unrelated issue (with newtrunk?).
>> However I now figured out that the files are in fact found fine with my current configuration.
>>> If it finds the include, it may be your STL classes have unusual macros
>>> in them that Semantic can't handle. In the past the
>>> GLIBXX_BLAHBLAH_NAMESPACE_BEGIN type macros messed things up. If you
>>> have some other kinds of macros, that might be causing trouble.
>> I have to check in the coming week when I have access to the machine again, but I'm using Ubuntu 11.10 with gcc 4. Can I work around those "unusual" macros, when I find them?
> You can make strange macros disappear if they don't work by adding them
> to semantic-lex-c-preprocessor-symbol-map, which you can modify with M-x
> If you are particularly adventurous, you can look into the lexical
> analyzer semantic-lex-c-namespace-begin-macro, and see about enhancing
> that, or one of the following lexers that deal with your particular case.
Ok it seems I didn't really change my config, but at least for some STL types completion works. I'll investigate further with your tips when I come across things that dont work.
Do you know about this above mentioned "Cannot open load file: m3" I get when right-clicking on stuff? (I'm on newtrunk)