================
@@ -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:
Changed member calls in `clangd/DumpAST.cpp`,
`include/clang/ASTMatchers/ASTMatchersInternal.h`,
`lib/Analysis/UnsafeBufferUsage.cpp` and
`unittests/Tooling/RecursiveASTVisitorTestPostOrderVisitor.cpp`
There are many more places in clang where static `getOpcodeStr` is called, but
I changed only those where `BinaryOperator` and `UnaryOperator` calls appear
side-by-side (i.e. `BinaryOperator` uses the member function and
`UnaryOperator` does not).
https://github.com/llvm/llvm-project/pull/230692
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits