[cfe-dev] Are RTTI and exception handling usable in clang plugins?

Eli Friedman eli.friedman at gmail.com
Fri Nov 9 12:47:13 PST 2012


On Fri, Nov 9, 2012 at 10:16 AM, Bill White <bill.white at griggsinst.com> wrote:
> When I build clang with clang++, using cmake+ninja, the build seems to want
> to disable RTTI and exceptions.  Is this really the default?  If so, is
> there some reason to turn them off, or is this just for the sake of
> efficiency?

Nothing will break if you turn them on.  (But don't try to throw
exceptions through LLVM code anyway.)

> Also, does anyone know if it's possible to use the boost libraries in clang
> tools or plugins.

I can't think of any reason that wouldn't work.

-Eli



More information about the cfe-dev mailing list