11 #include "gtest/gtest.h"
17 auto Index = std::make_unique<FileIndex>();
18 for (
const auto &Input : Inputs) {
19 if (!Input.second.IsMainFile)
21 TU.
Code = Input.second.Code;
36 if (It == Inputs.end()) {
37 ADD_FAILURE() <<
"Accessing non-existing file: " <<
Filename;
40 TU.
Code = It->second.Code;
45 void TestWorkspace::addInput(llvm::StringRef
Filename,
46 const SourceFile &Input) {
47 Inputs.insert(std::make_pair(
Filename, Input));