mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-23 08:05:07 +00:00
11 lines
230 B
C++
11 lines
230 B
C++
|
#include "project.h"
|
||
|
|
||
|
optional<CompilationEntry> Project::FindCompilationEntryForFile(const std::string& filename) {
|
||
|
for (auto& entry : entries) {
|
||
|
if (filename == entry.filename)
|
||
|
return entry;
|
||
|
}
|
||
|
|
||
|
return nullopt;
|
||
|
}
|