about summary refs log tree commit diff
path: root/src/librustdoc/attr_parser.rs
AgeCommit message (Collapse)AuthorLines
2013-09-22rustdoc: Out with the old, in with the newAlex Crichton-149/+0
Removes old rustdoc, moves rustdoc_ng into its place instead (plus drops the _ng suffix). Also shreds all reference to rustdoc_ng from the Makefile rules.
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-1/+1
cc #5898
2013-08-10Mass rename of .consume{,_iter}() to .move_iter()Erick Tryzelaar-1/+1
cc #7887
2013-07-20syntax: modernise attribute handling in syntax::attr.Huon Wilson-21/+14
This does a number of things, but especially dramatically reduce the number of allocations performed for operations involving attributes/ meta items: - Converts ast::meta_item & ast::attribute and other associated enums to CamelCase. - Converts several standalone functions in syntax::attr into methods, defined on two traits AttrMetaMethods & AttributeMethods. The former is common to both MetaItem and Attribute since the latter is a thin wrapper around the former. - Deletes functions that are unnecessary due to iterators. - Converts other standalone functions to use iterators and the generic AttrMetaMethods rather than allocating a lot of new vectors (e.g. the old code would have to allocate a new vector to use functions that operated on &[meta_item] on &[attribute].) - Moves the core algorithm of the #[cfg] matching to syntax::attr, similar to find_inline_attr and find_linkage_metas. This doesn't have much of an effect on the speed of #[cfg] stripping, despite hugely reducing the number of allocations performed; presumably most of the time is spent in the ast folder rather than doing attribute checks. Also fixes the Eq instance of MetaItem_ to correctly ignore spaces, so that `rustc --cfg 'foo(bar)'` now works.
2013-07-07remove some method resolve workaroundsDaniel Micay-1/+1
2013-07-04Remove vec::{filter, filtered, filter_map, filter_mapped}, replaced by ↵Huon Wilson-3/+3
iterators.
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-2/+0
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-2/+3
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-16Do not strip leading whitespace when parsing doc comments.SiegeLord-2/+2
This change prevents the indentation in code blocks inside the /// doc comments from being eaten. The indentation that is the same across the consecutive doc comments is removed by the uindent_pass in librustdoc.
2013-06-13rustdoc: fix tests for @~str -> @str change.Huon Wilson-11/+11
2013-06-13Use @str instead of @~str in libsyntax and librustc. Fixes #5048.Huon Wilson-2/+2
This almost removes the StringRef wrapper, since all strings are Equiv-alent now. Removes a lot of `/* bad */ copy *`'s, and converts several things to be &'static str (the lint table and the intrinsics table). There are many instances of .to_managed(), unfortunately.
2013-06-12Silence some warnings.Huon Wilson-1/+0
2013-06-10std: remove str::{connect,concat}*.Huon Wilson-1/+1
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+1
2013-05-28Silence various warnings throughout test modulesAlex Crichton-1/+0
2013-05-22librustc: Add some missing `use core::prelude::*;` in the test casesPatrick Walton-0/+1
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-21Remove unnecessary allocations flagged by lint from rustdocSeo Sanghyeon-3/+3
2013-04-28refactoring mod.rsJohn Clements-1/+1
2013-04-27only use #[no_core] in libcoreDaniel Micay-4/+0
2013-04-16librustdoc: move tests into dedicated tests module.Huon Wilson-89/+88
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-9/+9
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-9/+9
2013-03-04Adding missing imports for tests, and gate off othersAlex Crichton-2/+0
2013-03-04Remove unused imports throughout src/Alex Crichton-4/+0
2013-02-19convert syntax::attr to use @~strsErick Tryzelaar-2/+3
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-1/+1
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-30rustdoc: Remove structural recordsBrian Anderson-3/+3
2013-01-30rustdoc: De-modeBrian Anderson-5/+5
2013-01-24remove remaining is_not_empty functions/methodsDaniel Micay-1/+1
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-3/+5
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-5/+3
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-3/+5
module scope. r=tjc
2012-12-29librustdoc: Fix a bunch of rustdoc tests. rs=bustagePatrick Walton-0/+3
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-1/+5
contain at least two components. r=graydon
2012-12-17Change iter::find's closure to take a refErick Tryzelaar-1/+1
2012-12-13librustdoc: Try to unbreak the test. rs=burningPatrick Walton-2/+2
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-20rustdoc: Begin removing legacy modesBrian Anderson-5/+5
2012-11-20rustdoc: Remove legacy exportsBrian Anderson-8/+4
2012-11-14Camel case all the codemap types except spanBrian Anderson-1/+1
2012-11-03library-ifying of tools - turning cargo, rustdoc, fuzzer, into libraries, as ↵Daniel Patterson-0/+150
per #3543