From 6e231628feefdccd3a5b142024876cf3120ccca0 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 20 Dec 2017 19:28:57 -0800 Subject: [PATCH] Specify lambda return type to work around clang 3.5 build issue --- src/test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.cc b/src/test.cc index 1f603094..0062e598 100644 --- a/src/test.cc +++ b/src/test.cc @@ -155,7 +155,7 @@ void RunIndexTests(const std::string& filter_path) { // FIXME: promote to utils, find and remove duplicates (ie, // cquery_call_tree.cc, maybe something in project.cc). - auto basename = [](const std::string& path) { + auto basename = [](const std::string& path) -> std::string { size_t last_index = path.find_last_of('/'); if (last_index == std::string::npos) return path;