Skip to content

Commit

Permalink
fix(cxx frontend): set CompilationUnit.source_file for unpacked input (
Browse files Browse the repository at this point in the history
  • Loading branch information
justbuchanan committed Nov 14, 2018
1 parent e46a055 commit 35706fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kythe/cxx/indexer/cxx/frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ void IndexerContext::LoadDataFromUnpackedFile(
file_data.mutable_info()->set_path(source_file_name);
file_data.set_content(source_data.str());
job.virtual_files.push_back(std::move(file_data));
job.unit.add_source_file(source_file_name);
for (const auto& arg : args_) {
job.unit.add_argument(arg);
}
Expand Down

0 comments on commit 35706fb

Please sign in to comment.