rust/crates/ra_syntax/src
bors[bot] ae6305b90c
Merge #1928
1928: Support `#[cfg(..)]` r=matklad a=oxalica

This PR implement `#[cfg(..)]` conditional compilation. It read default cfg options from `rustc --print cfg` with also hard-coded `test` and `debug_assertion` enabled.
Front-end settings are **not** included in this PR.

There is also a known issue that inner control attributes are totally ignored. I think it is **not** a part of `cfg` and create a separated issue for it. #1949

Fixes #1920 

Related: #1073 


Co-authored-by: uHOOCCOOHu <hooccooh1896@gmail.com>
Co-authored-by: oxalica <oxalicc@pm.me>
2019-10-05 14:25:59 +00:00
..
algo Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
ast Pass attributes as token tree to DefCollector 2019-10-03 02:27:11 +08:00
parsing Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
validation Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
algo.rs Merge branch 'master' into feature/issue/1856 2019-09-30 12:07:26 +03:00
ast.rs simplify strip attrs 2019-09-28 19:50:16 +03:00
fuzz.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
grammar.ron Merge #1928 2019-10-05 14:25:59 +00:00
lib.rs fix generated AST 2019-09-02 20:15:51 +03:00
parsing.rs allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ptr.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
syntax_error.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
syntax_node.rs streamline API 2019-07-21 13:28:58 +03:00
tests.rs WIP: switch to fully decomposed tokens internally 2019-09-10 15:46:39 +03:00
validation.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00