[libcxx-commits] [PATCH] D120905: [demangler] Add operator precedence

David Blaikie via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 28 14:56:17 PDT 2022


dblaikie added a comment.

In D120905#3412586 <https://reviews.llvm.org/D120905#3412586>, @dblaikie wrote:

> In D120905#3412571 <https://reviews.llvm.org/D120905#3412571>, @urnathan wrote:
>
>> - F22582853: 0001-WIP-match.patch <https://reviews.llvm.org/F22582853>
>
> Ah, thanks for posting - I committed an incomplete fix (didn't touch all the other ctors) in 1d1cf9b6c42c820f38eb776cb7504564441a23ee <https://reviews.llvm.org/rG1d1cf9b6c42c820f38eb776cb7504564441a23ee> - I think the right thing is probably to do-nothing in `print(Node::Prec prec)` - since I assume/my understanding is that the printing already accounts for precedence by adding parentheses etc where needed?

In any case, @urnathan - could you go ahead and commit the rest of the match fixes (& maybe for now leave my no-op version of `print(Prec)` in place - happy to discuss further what that should/shouldn't do here before we make further changes)? Or I can if you like.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120905



More information about the libcxx-commits mailing list