GithubHelp home page GithubHelp logo

gezidan / clangsharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnet/clangsharp

0.0 1.0 0.0 74 KB

Clang bindings for .NET and Mono written in C#

Home Page: http://www.clangsharp.org

License: Other

C# 98.80% Batchfile 0.73% Shell 0.47%

clangsharp's Introduction

ClangSharp

ClangSharp are strongly-typed safe Clang bindings written in C# for .NET and Mono, tested on Linux and Windows. ClangSharp is self-hosted and ClangSharp auto-generates itself parsing LLVM-C header files.

If you're on Windows, consider using the ClangSharp 3.6 NuGet Package - built from Clang 3.6 Release.

Building ClangSharp

On Linux using Mono:

 $ git clone http://github.com/mjsabby/ClangSharp
 $ cd ClangSharp
 $ chmod +x build.sh
 $ ./build.sh /path/to/libclang.so /path/clang/include

On Windows using Microsoft.NET:

Note: - you need to run from the Visual Studio Command Prompt of the architecture you want to target.

 :> git clone http://github.com/mjsabby/ClangSharp
 :> cd ClangSharp
 :> build.bat c:\path\libclang.dll C:\path\to\llvm\include

Features

  • Auto-generated using Clang C headers files, and supports all functionality exposed by them ~ which means you can build tooling around C/C++
  • Type safe (CXIndex and CXTranslationUnit are different types, despite being pointers internally)
  • Nearly identical to Clang C APIs, e.g. clang_getDiagnosticSpelling in C, vs. clang.getDiagnosticSpelling (notice the . in the C# API)

ClangSharp PInvoke Generator

A great example of ClangSharp's use case is its self-hosting mechanism Clang Sharp PInvoke Generator

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

clangsharp's People

Contributors

mjsabby avatar andyli avatar

Watchers

Gezidan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.