diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-08-14 10:24:42 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-08-20 10:45:40 +0200 |
| commit | c709c0a3ab61c9f635797118b063724617ba5c90 (patch) | |
| tree | f01915e40f5f8d73f4ada1b6258bbfc1f1e413a7 /src/rustllvm/RustWrapper.cpp | |
| parent | 5034792c88a33e4bc7597d9103faf1eaaec7f0ee (diff) | |
| download | rust-c709c0a3ab61c9f635797118b063724617ba5c90.tar.gz rust-c709c0a3ab61c9f635797118b063724617ba5c90.zip | |
Port lint.rs from oldvisit to <V:Visit> trait API. Less mechanical port.
That is, there was lots more hacking than the other more-mechanical ports Felix did. There's also a strange pattern that I hacked in to accommodate the Outer/Inner traversal structure of the existing code (which was previously encoding this by untying the Y-combinator style knot of the vtable, and then retying it but superimposing new methods that "stop at items"). I hope either I or someone else can come back in the future and replace this ugliness with something more natural. Added boilerplate macro; all the OuterLint definitions are the same (but must be abstracted over implementing struct, thus the macro). Revised lint.rs use declarations to make ast references explicit. Also removed unused imports.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
