[PATCH] D138777: [clang-tidy] Add check bugprone-multiple-new-in-one-expression.

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 28 10:37:33 PST 2022


njames93 added a comment.

I'm really not sure this is the right approach to solve the problem. If the concern here is leaking on exceptions, then the goalpost should be flagging all calls to global new and recommend a smart pointer factory instead. I think that check could even be made as a cppcoreguideline check


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138777/new/

https://reviews.llvm.org/D138777



More information about the cfe-commits mailing list