ousttrue / ClangCaster

clang parse then generate dll import

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ClangCaster

  • Parse c++ header
  • Generate enum, struct and DLLImport of CSharp

folder

CIndex

  • require environment variable PATH contains path to libclang.dll (LLVM-10.0)
  • netstandard2.0
  • Parse clang-c/Index.h and is generated by ClangCaster

ClangAggregator

  • Parse c++ header by CIndex and aggregator type info.

ClangCaster

  • Aggregate type info by ClangAggregator and Generate C# code.
  • using DotLiquid.

first version

Generated https://github.com/ousttrue/regenerator .

implementation

libclang

  • done

windows.h

  • rename struct tagXXX

About

clang parse then generate dll import

License:MIT License


Languages

Language:C# 100.0%