[clang] [clang-tools-extra] [clang][NFC] Un-constify `MultiLevelTemplateArgumentList` (PR #104687)

via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 08:05:33 PDT 2024


Sirraide wrote:

> But the template argument list is certainly _morally_ const and it is certainly immutable from the point of view of the caller. I think if we remove all the consts there is a higher chance that we actually end up mutating arguments in a persistent manner and that would be bad.

Yeah, makes sense. Copying does sound like a solution with less room for error if that’s feasible.

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


More information about the cfe-commits mailing list