hanchenye-llvm-project/lldb/unittests/Symbol
Zachary Turner 970f38ead6 [NFC] Refactor SetBaseClasses and DeleteBaseClasses.
We currently had a 2-step process where we had to call
SetBaseClassesForType and DeleteBaseClasses.  Every single caller
followed this exact 2-step process, and there was manual memory
management going on with raw pointers.  We can do better than this
by storing a vector of unique_ptrs and passing this around.
This makes for a cleaner API, and we only need to call one method
so there is no possibility of a user forgetting to call
DeleteBaseClassSpecifiers.

In addition to this, it also makes for a *simpler* API.  Part of
why I wanted to do this is because when I was implementing the native
PDB interface I had to spend some time understanding exactly what I
was deleting and why.  ClangAST has significant mental overhead
associated with it, and reducing the API surface can go along
way to making it simpler for people to understand.

Differential Revision: https://reviews.llvm.org/D53590

llvm-svn: 345312
2018-10-25 20:44:56 +00:00
..
Inputs
CMakeLists.txt Remove spurious dependency on Process/elf-core from Process/Utility. 2018-05-23 22:04:20 +00:00
TestClangASTContext.cpp [NFC] Refactor SetBaseClasses and DeleteBaseClasses. 2018-10-25 20:44:56 +00:00
TestDWARFCallFrameInfo.cpp Refactor ExecuteAndWait to take StringRefs. 2018-06-12 17:43:52 +00:00
TestType.cpp [LLDB] Unit tests / typo fix 2018-06-07 08:58:34 +00:00