summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-10-24Presume that a function taking a pointer is unsafeDavid Hotham
2015-07-29Add support for 'packed' attribute.Ilkka Rauta
2015-07-25Fix a typoIvan Ukhov
2015-07-07Add support for generating consts for integer constants. Fixes #145.Ted Mielczarek
This patch adds a few things to enable this: * Cursor::extent * struct Token * TranslationUnit::tokens - clang's C API doesn't have a straightforward way to get the integer literal from a variable declaration, so I used clang_tokenize to get the literal token and parse it. * VarInfo::val - to store the value. Non-const variable declarations and non-integer constants are handled as they were previously.
2015-07-01match_pat support for bindgen::builder() APIJeff Waugh
2015-06-13Update to syntex_syntax 0.7.*mcarton
Fix #213.
2015-06-07Add Builder::clang_argBen Foppa
2015-05-23add `-I /path/to/clang/include` to clang args used in the `bindgen!` pluginJorge Aparicio
We do the same thing for the `bindgen` binary (see #196).
2015-05-11remove unnecessary lifetime bound from `Bindings::write`Jorge Aparicio
2015-05-07Add a builder interface to libbindgenEdward Barnard
2015-05-03Support building bindgen with rust 1.0 betaEdward Barnard
2015-04-24rustup: add required trace_mac when declaring ExpansionCfgPaul Osborne
This was tested on rustc 1.0.0-dev (f46c4e158 2015-04-20) (built 2015-04-20). The commit in rust that appears to have introduced the problem is https://github.com/rust-lang/rust/commit/d14109ec7e90f42a7cb966415b96094b146d3706 This change will likely break with older versions of rust (e.g. 1.0 beta), so it may be worth sitting on its inclusion into master for some time.
2015-04-19Move rustc plugin out into its own crate.Philipp Brüschweiler
This is a workaround while #89 is still breaking bindgen for many people. I haven't tested if the plugin still works, as it always crashed for me because of that bug.
2015-04-19Merge branch 'get-clang-headers' of https://github.com/Blei/rust-bindgenJyun-Yan You
2015-04-18Try to include clang's bundled include files if possible.Philipp Brüschweiler
Towards #85
2015-04-18Don't transmute from &Trait to Box<Trait>.Philipp Brüschweiler
This is very unsafe, and not even needed for the current code. Fixes #190
2015-04-13fix: `impl Clone` on generated structs/enumsJorge Aparicio
The `Copy` trait requires that the implementor is also `Clone`. Currently, generated types have a `#[derive(Copy)]` but are missing the `Clone` implementation. With this patch, bindgen now adds a `Clone` implementation to each generated struct/enum. Clone is implemented as a copy because the generated types already have a `#[derive(Copy)]` Sample output: ``` #[repr(C)] #[derive(Copy)] pub struct Struct_termios { pub c_iflag: tcflag_t, pub c_oflag: tcflag_t, pub c_cflag: tcflag_t, pub c_lflag: tcflag_t, pub c_line: cc_t, pub c_cc: [cc_t; 32usize], pub c_ispeed: speed_t, pub c_ospeed: speed_t, } impl ::std::clone::Clone for Struct_termios { fn clone(&self) -> Struct_termios { *self } } impl ::std::default::Default for Struct_termios { fn default() -> Struct_termios { unsafe { ::std::mem::zeroed() } } } ```
2015-04-09fix build on master rustСухарик
2015-03-30upstream rust changes: spit out '1usize' instead of '1u'Jason Fager
2015-03-22Clean up `allow`sTamir Duberstein
2015-03-22Purge `old_io`Tamir Duberstein
2015-03-22Silence warningsTamir Duberstein
2015-03-22RustupTamir Duberstein
Fixes #184.
2015-03-22WhitespaceTamir Duberstein
2015-03-08Fix buildJyun-Yan You
2015-03-06update to rust nightlyJorge Aparicio
2015-03-01fix: update to rust nightlyJorge Aparicio
2015-02-20update Hash impl for upstreamJason Fager
2015-02-19upstream rust changesJason Fager
2015-02-16upstream rust changesJason Fager
2015-02-10Fix buildWill Wykeham
InternedString Deref Feature gate Closure type inference
2015-02-06Use old_pathpanicbit
2015-01-30Update unboxed closure syntax.Nik Voss
2015-01-28Update bindgen bin for io -> old_io too.Robert Clipsham
2015-01-28Fixes for std::io -> std::old_io Rust changes.Robert Clipsham
2015-01-24Fix buildJyun-Yan You
2015-01-21set return code on non-panic errorswartman4404
2015-01-12Use usize/us instead of uint/u in generated codeAndrew Cann
2015-01-10Update for integer renamingDan Burkert
2015-01-10Fix build for rustc 1.0.0-nightly (44a287e6e 2015-01-08 17:03:40 -0800)Dan Burkert
2015-01-07Gets tests running, simplifies use of Cursor.visit.Christopher Chambers
clang.rs - Remove Box<_> from the signature of Cursor.visit. This makes the implementation a little noisier, but makes calling easier. tests - Updated for recent changes to rustc and std.
2015-01-08Fix unboxed closuresAidan Hobson Sayers
2015-01-07Macro is now a reserved keywordAidan Hobson Sayers
2015-01-05Fixes after entry api modificationsFrancois Bernier
2015-01-03Fix buildEdward Barnard
2015-01-03Don't try to generate assessors for bitfields in anonymous structs. Closes #151.Edward Barnard
2015-01-03Recurse through arrays and pointers to anonymous structs. Closes #150.Edward Barnard
2015-01-03fix build on master rustСухарик
2015-01-01Fix buildEdward Barnard
2015-01-01Structs containing bitfields are now the correct size and bitfield accessors ↵Edward Barnard
can be written by hand if required.