Serafean wrote:
Handling `CXXOperatorCallExpr` is desirable indeed.
Adding `clang_Function_getBinaryOperatorKind` makes sense for discovery and API
symmetry. Could `clang_getCursorBinaryOperatorKind` also handle the
declaration case, and `clang_Function_getBinaryOperatorKind` only delegate to
that? Would that be OK? My argument for this is to keep the unary/binary op
distinction logic in one place. Essentially:
`
clang_Function_getBinaryOperatorKind(CXCursor decl) {
return clang_getCursorBinaryOperatorKind(decl);
}
`
https://github.com/llvm/llvm-project/pull/216553
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits