From 784b900218822a5de706f5035baf5273a1ff7ac1 Mon Sep 17 00:00:00 2001 From: Alastair Robertson Date: Wed, 31 May 2023 06:49:47 -0700 Subject: [PATCH] TypeGraph: Replace allocators with DummyAllocator When we were previously removing allocators, we were only able to work with containers whose allocators appeared as their last template parameter. Now we can replace allocators in the middle of a parameter list. This fixes tests for folly::sorted_vector_set. --- oi/OITraceCode.cpp | 27 ++++++++ oi/type_graph/Printer.cpp | 5 +- oi/type_graph/TypeIdentifier.cpp | 55 ++++++++-------- oi/type_graph/Types.h | 6 +- test/test_name_gen.cpp | 13 +++- test/test_type_identifier.cpp | 104 ++++++++++++++++++++++++++++++- types/cxx11_string_type.toml | 8 +-- types/seq_type.toml | 8 +-- types/string_type.toml | 8 +-- 9 files changed, 186 insertions(+), 48 deletions(-) diff --git a/oi/OITraceCode.cpp b/oi/OITraceCode.cpp index b6323b6..ace2ece 100644 --- a/oi/OITraceCode.cpp +++ b/oi/OITraceCode.cpp @@ -155,3 +155,30 @@ struct alignas(align) DummySizedOperator { // DummySizedOperator<0,0> also collapses to this template <> struct DummySizedOperator<0> {}; + +template