Details
- Reviewers
dblaikie - Commits
- rG2961f86317f8: [Demangle][Rust] Parse basic types
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Looks good - maybe some patch reordering, maybe the generic rule is as good as the "M" or "Y" rule to test <type> - your call.
llvm/lib/Demangle/RustDemangle.cpp | ||
---|---|---|
119 | Maybe it'd be more direct to implement/test type here (or with "Y" below) (or is there some even more direct production/reference to types?) rather than as parameters to generic types? Then the generic type testing can include one simple nested type without using generic types as the means to test all the basic types? | |
236 | Spec comment for <basic-type> (I realize it's not much more than the table of implementation - but when looking around for the <basic-type> rule, it'd be nice if it were written somewhere/here) | |
239–240 | Skip the else after return ( https://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return ) |
Address review comments
- Add description of <basic-type> production from the specification.
- Don't use else after a return.
The other rules seems equally good for testing <type> as <generic-arg> is, so I left this as is.
Could you commit this for me? Thanks.
Maybe it'd be more direct to implement/test type here (or with "Y" below) (or is there some even more direct production/reference to types?) rather than as parameters to generic types?
Then the generic type testing can include one simple nested type without using generic types as the means to test all the basic types?