mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Specify lambda return type to work around clang 3.5 build issue
This commit is contained in:
parent
3410f9769c
commit
6e231628fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user