When option --symbolize is true, llvm-xray convert will demangle function name on default.
This patch adds a llvm-xray convert option no-demangle to determine whether to demangle function name when symbolizing function ids from the input log
Differential D108019
[NFC][llvm-xray] add a llvm-xray convert option `no-demangle` Enna1 on Aug 13 2021, 12:28 AM. Authored by
Details When option --symbolize is true, llvm-xray convert will demangle function name on default. This patch adds a llvm-xray convert option no-demangle to determine whether to demangle function name when symbolizing function ids from the input log
Diff Detail Event TimelineComment Actions Looks straightforward enough, but is it possible to add a test? You should fix the clang-format issue. If you install clang-format locally (either one you build yourself or a prebuilt downloaded one), arc lint should fix formatting for you automatically. Comment Actions Thanks @smeenai ! Comment Actions LGTM. Do you have commit access or do you need this committed for you?
Comment Actions We should provide a consistent naming with llvm-xray extract ? llvm-xray extract use an option no-demangle and set no-demangle to false on default.
Comment Actions Changing the default behavior may break current usages. It's not a good choice. Perhaps we can leave this choice to the future. Comment Actions Now I have taken a closer look. --no-demangle from extract can be shared with convert. --symbolize is similarly used by both commands.
function was a late addition. --no-demangle was added to extract. Now there is a request for convert. I'm going to add --demangle first. Comment Actions
OK, renamed to --no-demangle, this will be consistent with https://reviews.llvm.org/D108100 :) |
clang-format: please reformat the code