aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand/src/builtin_macro.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge #4125bors[bot]2020-04-251-1/+1
|\ | | | | | | | | | | | | | | 4125: Avoid lossy OsString conversions r=matklad a=lnicola This is a bit invasive, and perhaps for not much benefit since non-UTF-8 environment variables don't work anyway. Co-authored-by: LaurenČ›iu Nicola <[email protected]>
| * Avoid lossy OsString conversionsLaurențiu Nicola2020-04-251-1/+1
| |
* | Convert code to text-sizeAleksey Kladov2020-04-251-2/+2
|/
* Some clippy fixesJeremy Kolb2020-04-191-4/+4
|
* Update commentEdwin Cheng2020-03-111-4/+4
| | | | Co-Authored-By: bjorn3 <[email protected]>
* Implement dummy assert macroEdwin Cheng2020-03-111-0/+56
|
* Add extern sourceEdwin Cheng2020-03-111-1/+2
|
* Add and fix testsEdwin Cheng2020-03-101-60/+121
|
* Add parse_to_token_treeEdwin Cheng2020-03-081-4/+4
|
* Prevent include! macro include itselfEdwin Cheng2020-03-071-1/+6
|
* Fix test and add more commentEdwin Cheng2020-03-071-1/+4
|
* Use a not so dummy implementation of env macroEdwin Cheng2020-03-071-1/+1
|
* Implment include macroEdwin Cheng2020-03-061-6/+46
|
* Fix whitespace in testsEdwin Cheng2020-03-041-2/+2
|
* Implement concat macroEdwin Cheng2020-03-031-36/+90
|
* Add LazyMacroIdEdwin Cheng2020-03-031-1/+5
|
* More manual clippy fixesKirill Bulatov2020-02-181-7/+4
|
* Run cargo +nightly fix --clippy -Z unstable-optionsKirill Bulatov2020-02-181-2/+2
|
* Use dummy value for line! and column! macroEdwin Cheng2020-01-141-83/+13
|
* Use dummy value for macro file in bulitin macrosEdwin Cheng2020-01-111-2/+10
|
* Add dummy implementations of env! and option_env! builtinsFlorian Diebold2019-12-211-43/+95
| | | | | | They don't do anything except return the correct type. Also refactor the builtin macro tests a bit.
* Clippy lintskjeremy2019-12-201-1/+1
|
* Remove useless clonekjeremy2019-12-201-1/+1
|
* Rename N! to name!Florian Diebold2019-12-131-1/+1
|
* Add macros for known names and pathsFlorian Diebold2019-12-131-8/+8
|
* Move traits to the new locAleksey Kladov2019-12-121-1/+4
|
* Fix expansion of format_argsFlorian Diebold2019-12-081-6/+13
|
* Remove MacroFileKindEdwin Cheng2019-12-081-5/+4
|
* Implement format_args more properlyFlorian Diebold2019-12-061-4/+43
|
* Add stub implementation of format_args{_nl} macrosFlorian Diebold2019-12-061-1/+18
| | | | Just enough to fix the huge amount of type mismatches they cause.
* Add expansion infrastructure for derive macrosFlorian Diebold2019-12-051-19/+18
|
* Merge #2362bors[bot]2019-11-251-0/+38
|\ | | | | | | | | | | | | | | 2362: Expand compile_error! r=edwin0cheng a=kjeremy Does not validate that the input is a string literal. I thought that I could `match_ast!` against the `macro_args` but that did not work. Even if it had I am not sure which error would be appropriate. Co-authored-by: Jeremy Kolb <[email protected]>
| * Expand compile_error!Jeremy Kolb2019-11-251-0/+38
| |
* | Fix panic during the expansion of `column!`Marco Groppo2019-11-241-5/+16
|/
* Use macro for all the thingsEdwin Cheng2019-11-231-48/+31
|
* Rename BuiltinExpander to BuiltinFnLikeExpanderEdwin Cheng2019-11-231-9/+9
|
* Refactor builtin macroEdwin Cheng2019-11-221-18/+124
|
* Expand column!()Jeremy Kolb2019-11-221-1/+43
|
* Expand file! to dummy ""kjeremy2019-11-221-1/+25
|
* Add support for Stringify builtin macroPiotr Szpetkowski2019-11-221-0/+27
|
* Add MacroDefKindEdwin Cheng2019-11-111-6/+2
|
* Add line macro and testsEdwin Cheng2019-11-111-6/+64
|
* Add basic bultin macro infrastructureEdwin Cheng2019-11-111-0/+26