Happy !

CipT / LibClang

Project infos

License MIT
Tags ffi binding, clang compiler
Creation date 2012-12-27
Website

Monticello registration

About LibClang

This is a NativeBoost-based binding of the libclang: the C Interface to Clang (release 3.1).

[LibClang] is a stable high level C interface to clang.

See LibClangExample class for some usage scenarios

Ex: LibClangExample stdlibHFunctions -- list all functions declared in stdlib.h header file

IMPORTANT note 1: You need to have a 32 bit libclang library compiled on your machine to use this binding.

building 32 bit libclang shared library on mac os x:

configure --prefix=<your install path> --enable-optimized --target=i686-apple-darwin10

You will need to modify the LibClangMap class >> libraryNameOrHandle to define the path to your libclang dynamic library

To load it just evaluate:

Gofer it
    smalltalkhubUser: 'CipT' project: 'LibClang';
    package: 'ConfigurationOfLibClang';
    load.
(Smalltalk at: #ConfigurationOfLibClang) loadDevelopment.