Declare lambda return to satisfy older Clang versions.
Summary:
Clang 3.5 is not happy with the deduced return type on this particular lambda
expression; but declaring what we want explicitly mitigates it.
Reviewers: zarko, #core_team, shahms
Subscribers: #core_team
@@ -960,7 +960,7 @@ void IndexWriter::InsertExtraIncludes(
return;
}
auto find_child = [](const std::set<std::string>& paths,
- const std::string& path) {
+ const std::string& path) -> std::string {
auto maybe_prefix = paths.upper_bound(path);
if (maybe_prefix == paths.end()) {
return std::string();
