summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-11-30Update which as well.Emilio Cobos Álvarez
2018-11-30Remove the hack now that rustfmt-nightly properly preserves the comments.Emilio Cobos Álvarez
2018-11-30Use rustfmt's normalize_doc_attributes, to mostly preserve behavior re. doc ↵Emilio Cobos Álvarez
comments.
2018-11-30Update quote and proc-macro.Bastien Orivel
I give up on the doc comments. This is a rebase of #1334 keeping the formatting of the comments and using TokenStream::from_str instead because one can hope. Fixes #1407.
2018-11-30Merge pull request #1452 from emilio/whitelist-nameEmilio Cobos Álvarez
Don't mangle using the parse callbacks for whitelisting / blacklisting / etc.
2018-11-30Rustfmt the bindgen-integration crate.Emilio Cobos Álvarez
2018-11-30Add a test for the interaction between blacklisting and parse callbacks.Emilio Cobos Álvarez
2018-11-30Merge pull request #1453 from flowbish/custom_derive. r=emilioEmilio Cobos Álvarez
Add source annotation to express explicit derives for a type.
2018-11-28Add source annotation to express explicit derives for a type.Porter Smith
This allows for explicit selection of which traits are derived for a type, e.g. deriving custom traits on particular types that need it. Example usage: ```C++ /// <div rustbindgen derive="Clone"></div> /// <div rustbindgen derive="MyDerivableTrait"></div> struct foo { ... }; ``` generates into ```Rust #[derive(Clone,MyDerivableTrait)] struct foo { ... } ```
2018-11-28Don't mangle using the parse callbacks for whitelisting / blacklisting / etc.Emilio Cobos Álvarez
2018-11-28Merge pull request #1451 from flowbish/must_use. r=emilioEmilio Cobos Álvarez
Add #[must_use] to functions annotated with __attribute__((warn_unused_result))
2018-11-27Add #[must_use] to functions annotated with __attribute__((warn_unused_result))Porter Smith
2018-11-26Merge pull request #1388 from chrysn-pull-requests/str_macro. r=emilioEmilio Cobos Álvarez
callbacks: Allow reporting string macros
2018-11-26Integration tests for str_macro callbackschrysn
2018-11-26callbacks: Allow reporting string macroschrysn
There is no useful action to take on those, but receiving their values (to re-export them as cfg() options) would be helpful right now in integrating with RIOT's build system.
2018-11-24Update ReadmeAlex Touchet
2018-11-24Update broken links: Rust-lang-nursery => Rust-lang (#1447)diwic
* Fix broken link to user's guide * rust-lang-nursery => rust-lang * rust-lang-nusery => rust-lang
2018-11-23Version bump.v0.43.2Emilio Cobos Álvarez
2018-11-13Auto merge of #1444 - scoopr:fix_noisy, r=emiliobors-servo
Fix noisy errors This silences errors from template functions and dependant types.
2018-11-14Fix noisy errorsMikko Lehtonen
This silences errors from template functions and dependant types.
2018-11-13Auto merge of #1441 - scoopr:fix_namespace_macro, r=emiliobors-servo
Fix namespaces with macro names This fixes 1. When the name of the namespace is actually a `#define` macro, which previosly got the name of the macro 2. When the namespace is started from a included file (the header is wrapped in a `nsbegin.h`/`nsend.h` includes), which previously got generated name for the namespace The change is small, but I feel it is a bit of a hack. It wasn't obvious to me what is a better path though.
2018-11-13Fix namespaces with macro namesMikko Lehtonen
2018-11-12Auto merge of #1440 - Eijebong:envloggerup, r=emiliobors-servo
Update env_logger
2018-11-11Update env_loggerBastien Orivel
2018-11-10Auto merge of #1438 - ekse:item_name, r=emiliobors-servo
Add item_name parse callback. Issue: #428
2018-11-10Add tests for renamed structure itemsSébastien Duquette
2018-11-10Add integration testsSébastien Duquette
2018-11-10Add item_name parse callback.Sébastien Duquette
2018-11-10Auto merge of #1437 - j-channings:master, r=emiliobors-servo
Fix Builder::command_line_args() --generate typo Looks like the accepted argument has always been "functions", and this output has always been "function".
2018-11-09Fix unit tests for `--generate functions` argJosh Channings
2018-11-08Fix Builder::command_line_args() --generate typoJosh Channings
Looks like the accepted argument has always been "functions", and this output has always been "function".
2018-11-07Auto merge of #1432 - fitzgen:patch-1, r=emiliobors-servo
Met @pepyakin in person for the first time last night! Unfortunately … …they don't have time for bindgen anymore r? @pepyakin
2018-11-07Auto merge of #1436 - sanxiyn:canonical-path, r=emiliobors-servo
Use canonical path for type alias loop detection Fix #1435
2018-11-07Use canonical path for type alias loop detectionSeo Sanghyeon
2018-11-05Auto merge of #1434 - emilio:attr-overloadable, r=emiliobors-servo
codegen: Make the mangling name check work in presence of attribute(overloadable). Fixes #1350
2018-11-06codegen: Make the mangling name check work in presence of ↵Emilio Cobos Álvarez
attribute(overloadable). Fixes #1350
2018-10-31Met @pepyakin in person for the first time last night! Unfortunately they ↵Nick Fitzgerald
don't have time for bindgen anymore r? @pepyakin
2018-10-28Auto merge of #1430 - emilio:implicit-template-params, r=emiliov0.43.1bors-servo
ir: Consistently append implicit template parameters when not using Rust unions. Fixes #1429.
2018-10-29ir: Consistently append implicit template parameters when not using Rust unions.Emilio Cobos Álvarez
Fixes #1429.
2018-10-22Version bump, plus actually bump the required cexpr version.v0.43.0Emilio Cobos Álvarez
2018-10-22codegen: Teach bindgen to respect constness of statics.Emilio Cobos Álvarez
2018-10-18Auto merge of #1425 - emilio:cexpr-up, r=emiliov0.42.3bors-servo
Update cexpr. Fixes #1424.
2018-10-19Update version.Emilio Cobos Álvarez
2018-10-19Update cexpr.Emilio Cobos Álvarez
Fixes #1424.
2018-10-19tests: Add test coverage for #1424.Emilio Cobos Álvarez
2018-10-13Auto merge of #1420 - jcreedcmu:jcreed/blacklist-identifier, r=emiliobors-servo
Re-add ability to blacklist arbitrary identifiers (regardless of which sort of Item they are) @emilio how about this? If you're trying to move away from allowing `Item`-type-independent blacklisting on purpose, I'd understand, but this seemed like the easiest fix to let remacs bump their bindgen version up to master. I also considered adding a `blacklisting_callback` that let the caller supply a `fn (item: &Item) -> bool` to blacklist however they want, but it seemed somewhat unpleasant to make the client recapitulate the whole build-up-a-vector-of-strings-and-map-over-them-checking-if-they-match-as-regexes that bindgen is already supplying.
2018-10-13Update bindgen version in tutorial.Bacon
2018-10-13Make blacklist-item.hpp test clearerJason Reed
2018-10-13Changed 'identifier' to 'item', added c++ testJason Reed
2018-10-12Re-add ability to blacklist arbitrary identifiersJason Reed
(regardless of which sort of Item they are)