mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 20:40:11 +01:00
This is often a (much) better option for this code as we have many types that are just an integer, pointer, or enum of data that would be much more efficient as a by-value parameter. It is also a cleaner design in most cases. One place can't migrate in this way: iterators that use the LLVM CRTP library for filling out iterator methods. The CRTP dispatch expects operators to be actual members, and so those are left as-is in this patch.