================
@@ -888,17 +888,59 @@ class TrivialFunctionAnalysisVisitor
}
bool checkArguments(const CallExpr *CE) {
+ auto *Callee = CE->getDirectCallee();
+ unsigned ArgOffset =
+ isa<CXXOperatorCallExpr>(CE) && isa_and_nonnull<CXXMethodDecl>(Callee);
+ unsigned ArgIndex = 0;
----------------
steakhal wrote:
Have you considered using `llvm::enumerate` and deriving this from the
`llvm::enumerate(CE->arguments())`?
https://github.com/llvm/llvm-project/pull/198919
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits