From 11cc728e75d2c215abdb2e402aa50f415060fef3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 30 Mar 2022 16:35:23 -0400 Subject: cmConstStack: Factor out of cmListFileBacktrace This presents value semantics for a stack of constant values. Internally it shares ownership to avoid copies. Previously this was implemented by `cmListFileBacktrace` explicitly, but the approach can be re-used for other kinds of stacks. --- Utilities/IWYU/mapping.imp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Utilities/IWYU') diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp index 8c55c85f86..b80fc22885 100644 --- a/Utilities/IWYU/mapping.imp +++ b/Utilities/IWYU/mapping.imp @@ -131,6 +131,9 @@ { include: [ "", private, "\"cmCursesStandardIncludes.h\"", public ] }, { include: [ "\"form.h\"", private, "\"cmCursesStandardIncludes.h\"", public ] }, { include: [ "", private, "\"cmCursesStandardIncludes.h\"", public ] }, + + # Help IWYU understand our explicit instantiation for cmConstStack. + { symbol: [ "cmConstStack::cmConstStack", private, "\"cmConstStack.h\"", public ] }, ] # vim: set ft=toml: -- cgit v1.2.1