https://github.com/gnimuc/clangcompiler.jl
Clang compiler infrastructure for Julia
https://github.com/gnimuc/clangcompiler.jl
Last synced: 4 months ago
JSON representation
Clang compiler infrastructure for Julia
- Host: GitHub
- URL: https://github.com/gnimuc/clangcompiler.jl
- Owner: Gnimuc
- License: mit
- Created: 2021-03-14T07:40:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-20T12:00:43.000Z (9 months ago)
- Last Synced: 2025-02-23T06:48:30.413Z (5 months ago)
- Language: Julia
- Homepage:
- Size: 2.36 MB
- Stars: 22
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ClangCompiler
[](https://github.com/Gnimuc/ClangCompiler.jl/actions/workflows/CI.yml)
[](https://github.com/Gnimuc/ClangCompiler.jl/actions/workflows/TagBot.yml)
[](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 CCI = 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)
```