summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-11-02clang: Some partially specialized templates return no template argument count.Emilio Cobos Álvarez
2016-11-02Add a method to generate dummy C/C++ uses of whitelisted types for testingNick Fitzgerald
A part of #151.
2016-11-02Check resulting Cursor instead of the existing oneEthan Glasser-Camp
Thanks @fitzgen for the correction. This also allows us to simplify the is_template method. Thanks @emilio for the suggestion.
2016-11-02Make clang::Cursor::specialized return an OptionEthan Glasser-Camp
Fixes #122.
2016-11-02Fix #140 clang::Type::arg_types should return Option<Vec<Type>>Romain Loisel
2016-11-01Fix version logging and add ClangVersion structoldmanmike
2016-11-01Add logging of Clang versionoldmanmike
2016-11-01Avoid an extra lookup when finding new whitelisted items to traverseNick Fitzgerald
2016-11-01Use `BindgenContext::whitelisted_items` in code generationNick Fitzgerald
This replaces the manual gathering and traversal of the transitive closure of whitelisted items with the new canonical method.
2016-11-01Add a method for iterating over whitelisted itemsNick Fitzgerald
This commit adds the `BindgenContext::whitelisted_items` method and `WhitelistedItemsIter` iterator. Together, they can be used to iterate over whielisted items' transitive closure.
2016-11-01Get rid of `String_`, use Into<String> for CXString.Emilio Cobos Álvarez
2016-11-01Manual fixups, some of them pretty lame, and don't let rustfmt rewrap comments.Emilio Cobos Álvarez
2016-11-01Run `cargo fmt`.Emilio Cobos Álvarez
2016-11-01Let rustfmt find the codegen module.Emilio Cobos Álvarez
2016-11-01Convert mod comment to a proper comment to avoid hitting ↵Emilio Cobos Álvarez
https://github.com/rust-lang-nursery/rustfmt/issues/1184
2016-11-01Refactor how doc_mod works so rustfmt finds those modules easily.Emilio Cobos Álvarez
2016-11-01Don't auto-format generated files.Emilio Cobos Álvarez
2016-11-01Fix #121: call unwrap() directly instead of calling except()Aurélien Normand
2016-11-01Fix #121: Cursor::num_template_args(...) returns Option<u32> instead of c_intAurélien Normand
2016-11-01Auto merge of #175 - jeanphilippeD:issue136, r=fitzgen,emiliobors-servo
clang::Type::template_args return Option<TypeTemplateArgIterator> Fix #136 by providing a bound checked iterator replacing the interface.
2016-11-01Auto merge of #178 - Incognitas:master, r=fitzgenbors-servo
Fix for #138 : rework for elem_type() which now returns Option<Type> instead of Type Fixes #138 Since I am new to Rust, I hope I didn't do things too badly
2016-11-01Fix empty mangling handling on OSXEmilio Cobos Álvarez
2016-10-31Auto merge of #177 - fitzgen:move-type-collector, r=emiliobors-servo
Move the `TypeCollector` trait to the `ir` module This commit move the `TypeCollector` trait out from the `codegen` module and into its own submodule in `ir::type_collector`. Additionally, it puts the various `TypeCollector` trait implementations next to the types that each implementation is for. I'm going to start using this trait outside of codegen, and I think it makes more sense in `ir` since it is implemented by `ir` types and is all about `ir` things. r? @emilio
2016-10-31Move the `TypeCollector` trait to the `ir` moduleNick Fitzgerald
This commit moves the `TypeCollector` trait out from the `codegen` module and into its own submodule in `ir::type_collector`. Additionally, it puts the various `TypeCollector` trait implementations next to the types that each implementation is for.
2016-10-31rework for elem_type() which now returns Option<Type> instead of TypeAurélien Normand
2016-10-31clang::Type::template_args return Option<TypeTemplateArgIterator>Jean-Philippe DUFRAIGNE
2016-10-31Auto merge of #173 - emilio:errors, r=fitzgenbors-servo
Be less noisy about known to be unimportant errors. r? @fitzgen
2016-10-31Make the build deny(warnings).Emilio Cobos Álvarez
2016-10-31Auto merge of #171 - jeanphilippeD:issue135, r=emiliobors-servo
clang::Type::num_template_args return Option<u32> fix #135 Fix #135
2016-10-31Be less noisy about known to be unimportant errors.Emilio Cobos Álvarez
2016-10-31Use iterators for comment attributes fix #166Jean-Philippe DUFRAIGNE
2016-10-31Use iterators for comment children partial fix #166Jean-Philippe DUFRAIGNE
2016-10-31clang::Type::num_template_args return Option<u32> fix #135Jean-Philippe DUFRAIGNE
2016-10-31Auto merge of #158 - ajnirp:143-comment-get-tag-attr, r=emiliobors-servo
143 comment get tag attr Fixes #143
2016-10-30change return type of Comment::get_tag_attr_{name,value} to Option<String>Rohan Prinja
2016-10-30Auto merge of #165 - jeanphilippeD:issue141, r=emiliobors-servo
Return Option<Type> in clang::Type::ret_type fix #141 Fixes #141
2016-10-30Auto merge of #168 - KiChjang:diagnostic-drop, r=emiliobors-servo
Implement Drop for Diagnostic I built it and ran the test, and they all pass. Not sure what else there is to test for. Fixes #145.
2016-10-29Implement Drop for DiagnosticKeith Yeung
2016-10-29Auto merge of #163 - catdesk:master, r=KiChjangbors-servo
Change clang::Type::num_elements to return Option Fixes #139.
2016-10-29Change clang::Type::num_elements to return Optioncatdesk
2016-10-29Auto merge of #164 - catdesk:issue_142, r=KiChjangbors-servo
Check bounds when calling Comment::get_child (fix #142) Fixes #142.
2016-10-29Check bounds when calling Comment::get_child (fix #142)catdesk
2016-10-29Return Option<Type> in clang::Type::ret_type fix #141Jean-Philippe DUFRAIGNE
Also reduce the scope for unsafe code
2016-10-29ir: Document a bit better the local_id thing.Emilio Cobos Álvarez
2016-10-29ir: Cache the item's canonical name.Emilio Cobos Álvarez
2016-10-29ty: Don't bailout if we don't have any template type in the aliased template ↵Emilio Cobos Álvarez
parameter case.
2016-10-29Pass the potential id to be used as the type wrapper id.Emilio Cobos Álvarez
This should fix the MSVC problems. Signed-off-by: Emilio Cobos Álvarez <ecoal95@gmail.com>
2016-10-29Auto merge of #157 - fitzgen:doc-regex-set-mod, r=emiliobors-servo
Document the `regex_set` module r? @emilio
2016-10-29Use safe_canonical_type for parse timeXidorn Quan
This should fix #160.
2016-10-27Document the `regex_set` moduleNick Fitzgerald