summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-07-29Improve error message when libclang failsJoshua Liebow-Feeser
2018-07-26select cpp or c search paths based on clang argsKevin Schmid
2018-07-11Merge pull request #1348 from tmfink/feature-refactor. r=emilioEmilio Cobos Álvarez
Track Rust target features with declaration macro
2018-07-06Track Rust target features with declaration macroTravis Finkenauer
Eliminates the manual implementation of `From<RustTarget>` for `RustFeatures`.
2018-07-05Fix integer_type to actually return integers all the time.Emilio Cobos Álvarez
blob() does care about alignment, so we can get into an architecture where there are integers where size != align. This is a tentative fix for https://github.com/servo/servo/issues/21093, though as mentioned there I couldn't find a repro on my machine.
2018-07-05ir: Don't assume wchar is 2 bytes.Emilio Cobos Álvarez
Fixes #1345
2018-07-01codegen: Prevent unused_mut warnings, and fix formatting issues.Emilio Cobos Álvarez
Followup to #1342
2018-06-28Fix bitfields on big-endian machines.Petr Sumbera
Fixes #1340
2018-06-13Fix typos.Bruce Mitchener
2018-06-04add --constified-enum to output consts when the default is changedDaniel Brooks
2018-06-04remove unnecessary as_refDaniel Brooks
2018-06-04Rename from "enum variant" to "enum style"Daniel Brooks
2018-06-03Add an option to set the default codegen style for all enumsDaniel Brooks
2018-06-01Fix typo in `clang_version` documentationCharles Samborski
This is just a small PR to fix the "semvar" typo to "semver".
2018-05-29Check if `clang_Type_getNumTemplateArguments` is loaded before useStephen Touset
2018-05-16Handle pointer constness at the right level.Emilio Cobos Álvarez
2018-05-14ir: Make type parameters respect constness appropriately.Emilio Cobos Álvarez
2018-05-14ir: Make Opaque types respect constness appropriately.Emilio Cobos Álvarez
2018-05-14ir: Fix "this" argument generation to build a pointer to const, not a const ↵Emilio Cobos Álvarez
pointer.
2018-05-10Canonicalize a type (pointer type) first before checking for constnesscynecx
2018-05-03lib: Add a more-convenient API to add multiple lines to the same module.Emilio Cobos Álvarez
2018-05-03codegen: Actually honor the new option for module_lines.Emilio Cobos Álvarez
Only when modules are enabled of course.
2018-05-03lib: Add and document an API to add per-module raw lines.Emilio Cobos Álvarez
2018-04-08TemplateParameters.used_template_params doesn't return OptionTamir Duberstein
2018-04-08TemplateParameters.all_template_params doesn't return OptionTamir Duberstein
2018-04-08TemplateParameters.num_self_template_params doesn't return OptionTamir Duberstein
2018-04-08TemplateParameters.self_template_params doesn't return OptionTamir Duberstein
2018-04-07Auto merge of #1303 - Eijebong:bump, r=emiliobors-servo
Bump quote to 0.5
2018-04-07Auto merge of #1293 - strake:use_associated_consts, r=emiliobors-servo
optionally use associated constants in bitfields See #1166 r? @emilio
2018-04-07Make doc comments nice again.Emilio Cobos Álvarez
2018-04-06not generate associated constants to unnamed typesM Farkas-Dyck
2018-04-06Auto merge of #1294 - marty-se:master, r=fitzgenbors-servo
Whitelist inner types of whitelisted types even with no-recursive-whitelisting. This fixes issue #1285 where inner types were code generated but not properly processed by the derive analysis.
2018-04-04Bump quote to 0.5 and proc_macro2 to 0.3Bastien Orivel
2018-04-03Revert "Revert "Bump quote to 0.4""Bastien Orivel
This reverts commit eb415c7a7cf8c72664dbfda5a614474cda5c185c.
2018-04-03codegen: Don't skip alignment checks if we support repr align.Emilio Cobos Álvarez
Plus fix the check that avoids us generating explicit alignment fields for structs aligned to more than pointer-size. Fixes #1291
2018-04-03codegen: Use target pointer size consistently for layout calculations.Emilio Cobos Álvarez
Closes #1284
2018-04-03ir: Grab target information from clang.Emilio Cobos Álvarez
2018-04-02Link to the user's guide from the docs and manifestMatt Brubeck
2018-04-02Auto merge of #1288 - emilio:bye-links, r=pepyakinbors-servo
options: Remove the linking-related options. They do nothing, and are effectively superseded by --raw-line and friends. They also tend to confuse people. Closes #104
2018-04-02Whitelist inner types of whitelisted types even with no-recursive-whitelisting.Martin Karlgren
This fixes issue #1285 where inner types were code generated but not properly processed by the derive analysis.
2018-04-01feature guard rather than optionM Farkas-Dyck
2018-04-01optionally use associated constants in bitfieldsM Farkas-Dyck
2018-03-31ir: Remove an assertion that happens to be invalid.Emilio Cobos Álvarez
You can define a struct declared in an outer scope inside another struct, and the compiler won't even complain... C, what a language. Fixes #1281
2018-03-31options: Remove the linking-related options.Emilio Cobos Álvarez
They do nothing, and are effectively superseded by --raw-line and friends. They also tend to confuse people. Closes #104
2018-03-17Handle bitfield enum pattern aliasingTravis Finkenauer
The previous fix for issue #1198 was incomplete.
2018-03-13Auto merge of #1272 - tmfink:issue-1198, r=emiliobors-servo
Declare precedence on enum types Fixes issue #1198 where an enum matches the pattern for multiple enum types, such as constified module enum AND rustified enum. Documents precedence in `Builder` doc comment.
2018-03-13tests: Test repr(align()) only on nightly for now, make it 1.25 to reflect ↵Emilio Cobos Álvarez
reality.
2018-03-13Add a kill-switch for untagged unions.Emilio Cobos Álvarez
Otherwise we can't use repr(align) on stylo.
2018-03-13codegen: support repr(align).Emilio Cobos Álvarez
Fixes #917
2018-03-12Document enum variation precedenceTravis Finkenauer