Ensure that APIRecords get destroyed correctly.
authorDaniel Grumberg <dgrumberg@apple.com>
Fri, 18 Mar 2022 23:54:56 +0000 (23:54 +0000)
committerDaniel Grumberg <dgrumberg@apple.com>
Sat, 19 Mar 2022 00:49:37 +0000 (00:49 +0000)
commitfc3537697db7724834d8071cfee10cacceb9fc2a
treee7747b8ea29a975da9f0ea606b49640ce28ef3b1
parent8db4dc86861211dfd72848cb9f35e78a1fe5c1d8
Ensure that APIRecords get destroyed correctly.

Implements an APISet specific unique ptr type that has a custom deleter
that just calls the underlying APIRecord subclass destructor.
clang/include/clang/SymbolGraph/API.h
clang/lib/SymbolGraph/API.cpp
clang/test/SymbolGraph/global_record.c