summaryrefslogtreecommitdiff
path: root/libbindgen/src/clang.rs
AgeCommit message (Collapse)Author
2017-01-23Unify under the `bindgen` name.Emilio Cobos Álvarez
2017-01-09ir: Evaluate constant strings too.Emilio Cobos Álvarez
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2016-12-29Run `cargo fmt` on `libbindgen`Nick Fitzgerald
2016-12-23libbindgen: run `cargo fmt`.Emilio Cobos Álvarez
2016-12-21Run `cargo fmt` on the sourcesNick Fitzgerald
2016-12-15Wrap Type into OptionArtem Biryukov
2016-12-14Use a dynamically loaded clang to do as much as we can with old clang ↵Emilio Cobos Álvarez
versions, and experiment with new ones. It's a pity that we don't support clang 3.7 and similar for generating C bindings, when it should be straight-forward. This should allow us to support older clang versions, and also experiment with pre-release clang APIs if needed. This depends on: https://github.com/KyleMayes/clang-sys/pull/44
2016-12-13Use clang-sys bindings instead of ours.Emilio Cobos Álvarez
I plan to use a dynamically loaded clang-sys library to remove the llvm-stable feature. This is part of the work.
2016-12-07ir: Move duplicated checks into a function.Emilio Cobos Álvarez
2016-11-24Some fixes for libclang 4.0.Emilio Cobos Álvarez
2016-11-23Auto merge of #285 - tsliang:issue-125, r=emiliobors-servo
clang::Cursor::enum_type should return an Option<Type> Returning an Option<Type> relieves callers from having to check whether clang::Cursor::enum_type returns `CXType_Invalid`. Fixes #125
2016-11-22Use is_valid instead of checking directly against Type::kindTai Sassen-Liang
Thanks for pointing this out @emilio.
2016-11-20clang::Cursor::enum_type should return an Option<Type>Tai Sassen-Liang
Fixes issue #125
2016-11-18Do not evaluate variadic template typesNick Fitzgerald
This is a workaround for an internal clang assertion that gets triggered if we try to evaluate a variadic template type reference. Fixes #283
2016-11-17Attempt to fix #130 — clang::Cursor::args should return an Option<Vec<Cursor>>Rémy HUBSCHER
2016-11-16Address review comments.Emilio Cobos Álvarez
2016-11-16Multiple constant generation evaluation improvements.Emilio Cobos Álvarez
2016-11-16reformat.Emilio Cobos Álvarez
2016-11-16clang: Evaluate more complex constant expressions in variables.Emilio Cobos Álvarez
2016-11-16clang: Don't leak all the strings in the world.Emilio Cobos Álvarez
2016-11-15Clean up AST dumpingNick Fitzgerald
This adds labels to each thing that gets printed for each AST node, and uses a range for indent iteration rather than an index variable.
2016-11-16Transition to libbindgen sub-crateJeff Waugh
- The root crate is the `bindgen` binary - Rust-ify the test suite, no more subprocesses! - Update Travis config to test both crates