================ @@ -183,6 +196,22 @@ class UncountedCallArgsChecker Report->addRange(CallArg->getSourceRange()); BR->emitReport(std::move(Report)); } + + void reportBugOnThis(const Expr *CallArg) const { + assert(CallArg); + + SmallString<100> Buf; + llvm::raw_svector_ostream Os(Buf); + + Os << "Call argument for 'this' parameter is uncounted and unsafe."; ---------------- haoNoQ wrote:
This is a constant string, no need to stream it, just put it straight into the `BugReport` constructor. https://github.com/llvm/llvm-project/pull/81400 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits