[clang] [clang] Add new warning: not eliding copy on return (missed NRVO) (PR #139973)

Cory Fields via cfe-commits cfe-commits at lists.llvm.org
Wed May 28 13:46:19 PDT 2025


theuni wrote:

Turning this on points out a pretty surprising missed nrvo opportunity: #38674.

The warning is helpful for pointing out missed opportunities in user code, but it's not of much use if it's pointing out missed opportunities for clang too :)

https://github.com/llvm/llvm-project/pull/139973


More information about the cfe-commits mailing list