]> granicus.if.org Git - clang/commit
Simplify memory management of CXEvalResultKind/ExprEvalResult using unique_ptr and...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 13 Apr 2016 18:23:33 +0000 (18:23 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 13 Apr 2016 18:23:33 +0000 (18:23 +0000)
commit1f3b3a14e3b3d01fac9bdf5b9498346ac5214679
tree6a2115d2b3b9bc4a71be69edd877cc8cc09c766c
parent1eb408116bbfa3856e471f917c0901864607064b
Simplify memory management of CXEvalResultKind/ExprEvalResult using unique_ptr and a dtor

This doesn't seem to need to be a C type, C only handles a void*, so use
new/delete as usual to simplify allocation and cleanup.

Follow-up to r265994

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266222 91177308-0d34-0410-b5e6-96231b3b80d8
tools/libclang/CIndex.cpp