[clang] [clang][AST] Add public wrapper getOpcodeStr to UnaryOperator (PR #230692)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 9 19:16:32 PDT 2026
================
@@ -2399,6 +2399,8 @@ class UnaryOperator final
/// corresponds to, e.g. "sizeof" or "[pre]++"
static StringRef getOpcodeStr(Opcode Op);
+ StringRef getOpcodeStr() const { return getOpcodeStr(getOpcode()); }
----------------
shafik wrote:
This is not really a useful change if we don't update all the usage sites as well.
https://github.com/llvm/llvm-project/pull/230692
More information about the cfe-commits
mailing list