| 122 | } |
| 123 | |
| 124 | std::vector<clang::ASTUnit *> CompileHelper::getASTUnits() { |
| 125 | |
| 126 | std::vector<clang::ASTUnit *> ASTUnits; |
| 127 | for (auto &ASTFile : ASTFiles) { |
| 128 | if (!ASTFile.Ptr) { |
| 129 | ASTUnits.clear(); |
| 130 | return ASTUnits; |
| 131 | } |
| 132 | ASTUnits.emplace_back(ASTFile.Ptr.get()); |
| 133 | } |
| 134 | return ASTUnits; |
| 135 | } |
| 136 | |
| 137 | std::vector<std::unique_ptr<clang::ASTUnit>> CompileHelper::takeASTUnits() { |
| 138 |