Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gnimuc/clangcompiler.jl

Clang compiler infrastructure for Julia
https://github.com/gnimuc/clangcompiler.jl

Last synced: 18 days ago
JSON representation

Clang compiler infrastructure for Julia

Awesome Lists containing this project

README

        

# ClangCompiler

[![CI](https://github.com/Gnimuc/ClangCompiler.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/Gnimuc/ClangCompiler.jl/actions/workflows/CI.yml)
[![TagBot](https://github.com/Gnimuc/ClangCompiler.jl/actions/workflows/TagBot.yml/badge.svg)](https://github.com/Gnimuc/ClangCompiler.jl/actions/workflows/TagBot.yml)
[![codecov](https://codecov.io/gh/Gnimuc/ClangCompiler.jl/graph/badge.svg?token=uJ7HWrZcmd)](https://codecov.io/gh/Gnimuc/ClangCompiler.jl)

## Installation

```
pkg> add https://github.com/Gnimuc/ClangCompiler.jl.git
```

## Examples

### Decl Lookup

```julia-repl
import ClangCompiler as CC

I = CC.create_interpreter(["-include", "vector"])

decl_lookup = CC.DeclFinder(I)

@assert decl_lookup(I, "std::vector")

decl = CC.get_decl(decl_lookup)
CC.dump(decl)

CC.dispose(decl_lookup)
CC.dispose(I)
```