Thanks, Alex and Eric.

I added the code to my .emacs, deleted .semanticdb and it just works now.


On Fri, Nov 26, 2010 at 11:33 AM, Alex Ott <alexott@gmail.com> wrote:
Re all

I think, that it will look like following:

(defun recur-list-files (dir re)
 "Returns list of files in directory matching to given regex"
 (when (file-accessible-directory-p dir)
   (let ((files (directory-files dir t))
         matched)
     (dolist (file files matched)
       (let ((fname (file-name-nondirectory file)))
         (cond
          ((or (string= fname ".")
               (string= fname "..")) nil)
          ((and (file-regular-p file)
                (string-match re fname))
           (setq matched (cons file matched)))
          ((file-directory-p file)
           (let ((tfiles (recur-list-files file re)))
             (when tfiles (setq matched (append matched tfiles)))))))))))

(defun c++-setup-boost (boost-root)
 (when (file-accessible-directory-p boost-root)
   (let ((cfiles (recur-list-files boost-root "\\(config\\|user\\)\\.hpp")))
     (dolist (file cfiles)
       (add-to-list 'semantic-lex-c-preprocessor-symbol-file file)))))


to use it, add to your config file following call (c++-setup-boost "path-to-boost-includes")


Eric M. Ludlam  at "Fri, 26 Nov 2010 13:48:54 -0500" wrote:
 EML> Hi,

 EML> I think you need to add boost/thread/detail/config.hpp to the list of
 EML> spp-files to get the right #defines into your environment.

 EML> I also notice there are several detail/config.hpp in the boost include
 EML> hierarchy.  Perhaps an enterprising soul on the mailing list can propose
 EML> a command like:

 EML> (semantic-c++-configure-boost)

 EML> or some such to go out, find that stuff, and set things up to enable
 EML> boost parsing.

--
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/        http://alexott.net/
http://alexott-ru.blogspot.com/
Skype: alex.ott

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
cedet-semantic mailing list
cedet-semantic@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic



--
Cheers,
Ray