summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2016-10-27Document the `parse` moduleNick Fitzgerald
2016-10-27Document the `ir` moduleNick Fitzgerald
2016-10-27Auto merge of #153 - igilham:master, r=emiliobors-servo
Changed the potentially null pointer to an Optional. The caller previously assumed the pointer was always valid and not null, so I called `expect` to make it fail early if it isn't. Fixes #144.
2016-10-27Changed `clang::TranslationUnit::parse` to return an OptionIan Gilham
2016-10-27return Result<u32, ()> instead of Option<u32>malfunc
2016-10-27- changed output of fn num_args to option<u32>malfunc
- changed fn args to handle option<u32> instead of usize
2016-10-26Auto merge of #146 - fitzgen:moar-docs, r=fitzgenbors-servo
Document the `clang` module I found an OK way to require docs on public methods for internal modules with a macro and feature flag combo (see first commit). Then I made documentation for public methods in the `clang` module required, and filled them out (see the second commit). r? @emilio
2016-10-26Document the `clang` moduleNick Fitzgerald
2016-10-26s/type_resolver/ctx/ in src/ir/comp.rs as requested.Daniel Desancic
2016-10-25Handle octal and negative literals properlyXidorn Quan
2016-10-25Try to read integer literal from exprXidorn Quan
This and the commit before fixes #101.
2016-10-25Use canonical type for checking integer typeXidorn Quan
2016-10-24Add a method for requiring docs on internal modulesNick Fitzgerald
2016-10-24Add TODO for not ignoring LinkTypeNick Fitzgerald
2016-10-24Add `#![deny(missing_docs)]`Nick Fitzgerald
This commit adds the `#![deny(missing_docs)]` pragma, which causes compilation to fail if a public type or function is missing a documentation comment. It also adds missing documentation comments for public types and functions that were missing them.
2016-10-24Remove the unused override_enum_ty optionNick Fitzgerald
2016-10-24Remove the unused class_constants optionNick Fitzgerald