PragmaNamespace::Handlers: Use unique_ptr to simplify memory management
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 29 Apr 2020 01:59:40 +0000 (18:59 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 29 Apr 2020 05:31:15 +0000 (22:31 -0700)
commit4bd5fbec4bef71d79cbcd916237c8c7b467fb782
tree3d170bca9219365e41ac93b129e22e3f944dad52
parent957c5dd78bc16df46eb2fb89044accaae18628fd
PragmaNamespace::Handlers: Use unique_ptr to simplify memory management

The API actually passes and returns ownership too, but the usage uis
complicated enough that I'm not going to unique_ptr-ify those add/remove
calls.
clang/include/clang/Lex/Pragma.h
clang/lib/Lex/Pragma.cpp