Coder Social home page Coder Social logo

dariusheadertool's Introduction

Kodgen

License: MIT Latest Release Tests

Kodgen is a C++20 library based on libclang. It provides tools to parse C++ source files and generate files from the parsed data. The C++ entities parsed in the current implementation are namespaces, structs/classes, non-member and member variables, non-member and member functions, enums and enum values.

Getting Started

Requirements:

  • CMake 3.15.0+ (if you build the library from source).
  • A compatible compiler: MSVC Platform Toolset v141+ / GCC8.0.0+ / Clang 7.0.0+.

Clone the repository

Clone the git repository with its submodules:

> git clone https://github.com/jsoysouvanh/Kodgen.git
>
> cd Kodgen

Generate the project

> cmake -B Build/Release -DCMAKE_BUILD_TYPE=Release -G "<Generator>"

Most common generators include:

  • Visual Studio 15 2017
  • Visual Studio 16 2019
  • Unix Makefiles
  • Ninja
  • Type cmake -G for more information

Note: If you use Visual Studio 15 2017 generator, the default target platform is x86 so you should specify it explicitely. See the generator documentation for more information.

> cmake -B Build/Release -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 15 2017" -A x64

Build the library

> cmake --build Build/Release --config Release --target Kodgen

You will find built executables / shared libraries in Kodgen/Build/Release/Bin and static libraries in Kodgen/Build/Release/Lib.

Cross-platform compatibility

This library has been tested and is stable on the following configurations:

  • Microsoft Windows Server | MSVC 19.29.30133.0
  • Linux 20.04 | Clang 7.0.1, Clang 8.0.1, Clang 9.0.1, Clang 10.0.0, Clang 11.0.0
  • Linux 20.04 | GNU 8.4.0, GNU 9.3.0, GNU 10.3.0, GNU 11.1.0
  • Mac OS X 10.15.7 | AppleClang 12.0.0

dariusheadertool's People

Contributors

jsoysouvanh avatar mohammadmdsa avatar

Watchers

 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.