[cfe-dev] Clang as a compiler-only tool

Ted Kremenek kremenek at apple.com
Tue Nov 27 08:21:40 PST 2012

On Nov 27, 2012, at 7:48 AM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:

> Another possibility that might work is to build a shared library that
> exports only the symbols that plugins can use (just lib/AST maybe?)
> and have both clang and plugins link with it.

I am doubtful that this would be any better. Plug-ins will likely want to use almost every API that Clang has. That means that the shared library would need to export a ton of symbols, putting a lot of work on the dynamic linker.

More information about the cfe-dev mailing list