[PATCH] D101821: [Demangle][Rust] Print special namespaces

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 8 19:52:04 PDT 2021


dblaikie accepted this revision.
dblaikie added a comment.
This revision is now accepted and ready to land.

Looks great - thanks for sticking with me/helping make this easier for me to follow.



================
Comment at: llvm/test/Demangle/rust.test:33-34
+
+CHECK: a::{B:c#10}
+       _RNBC1as8_1c
+
----------------
Might be worth consistently using certain easy to identify identifiers? (I at least find it easier to understand the tests when the identifiers are readily.. identifiable - 'crate' is easy to spot in the other examples, for instance - but in an example with single letter identifiers like this ('a' and 'c') can make it a bit harder to read the example - knowing where the user-provided names start/end, which parts aren't from the user identifier)

(similarly below in the invalid namespace)

I guess in the first few examples the manglings were short/simple enough for me to figure out which component was from what - but as the examples get more complicated it's a bit harder to follow/understand and maybe clearer/long/obvious names would make it a bit easier.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101821/new/

https://reviews.llvm.org/D101821



More information about the llvm-commits mailing list