| 28 | #include <clang/Basic/Version.h> |
| 29 | |
| 30 | void ProjectManager::addProject(ProjectInfo info) { |
| 31 | if (info.source_path.empty()) |
| 32 | return; |
| 33 | llvm::SmallString<256> filename; |
| 34 | canonicalize(info.source_path, filename); |
| 35 | if (filename[filename.size()-1] != '/') |
| 36 | filename += '/'; |
| 37 | info.source_path = filename.c_str(); |
| 38 | |
| 39 | projects.push_back( std::move(info) ); |
| 40 | } |
| 41 | |
| 42 | ProjectInfo* ProjectManager::projectForFile(llvm::StringRef filename) |
| 43 | { |
no test coverage detected