[clang] [clang-tools-extra] [clang][AST] Add public wrapper getOpcodeStr to UnaryOperator (PR #230692)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 10 11:47:19 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()); }
----------------
LocalPiper wrote:
Thanks, I missed this one. From what I can tell, there are no more non-matching calls to public `getOpcodeStr` in clang and clangd.
https://github.com/llvm/llvm-project/pull/230692
More information about the cfe-commits
mailing list