Re: Semantic C preprocessor and Qt

David Engster <[email protected]> Tue, 27 Jan 2015 22:51:54 +0100
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
Michael Kuryshev writes:
> David Engster <[email protected]> writes:
>> If you're adventurous, you can try a new branch upstream called
>> deng/gcc-preprocessor. Build it as usual and use
>>
>> (semantic-add-system-include "/usr/include/qt4" 'c++-mode)
>> (setq semantic-gcc-get-preprocessor-macros t)
>>
>> in your init file.
>>
>> This will use gcc to get all preprocessor macros for each file. That
>> will slow down parsing of many files considerably, but it will have all
>> macro information.
>
> Works good so far, thanks! :-)

Great, thanks for testing. I'll merge this to master eventually, but
first I need to see how we might get this a bit faster. You easily get
thousands of #define's for libraries like Qt or Boost, and parsing them
takes time. I guess some caching might help...

-David

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/