| 5 | using namespace ftg; |
| 6 | |
| 7 | SourceCollection::~SourceCollection() { |
| 8 | ASTUnits.clear(); |
| 9 | // LLVMModule should be deleted before LLVMContext. |
| 10 | LLVMModule.reset(); |
| 11 | LLVMContext.reset(); |
| 12 | } |
| 13 | |
| 14 | const std::vector<clang::ASTUnit *> SourceCollection::getASTUnits() const { |
| 15 | std::vector<clang::ASTUnit *> RefASTUnits; |