[cfe-dev] parse C++ throw

Anton Korobeynikov asl at math.spbu.ru
Mon Feb 25 13:57:33 PST 2008


Hello, Mike

> If not that...  could we add:
>    /* -*- indent-tabs-mode:nil; -*- */
> the tops of all the files or find some other way reduce the burden for  
> emacs users?
Why don't add something like this to .emacs? :

(add-hook 'c-mode-hook
          (function
 	   (lambda nil 
 	     (if (string-match "llvm" buffer-file-name)
 		 (progn
 		   (c-set-style "LLVMCodeStyle")
 		   )
 	       ))))

I'm successfully using this approach for almost transparent switch over
different codestyles for several projects.

-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.





More information about the cfe-dev mailing list