forked from enlightenment/efl
eolian-cxx: fix #include directives generation
Summary: Fix eolian_cxx #include directives generation for relative paths Reviewers: cedric, stefan, stefan_schmidt CC: cedric, savio Differential Revision: https://phab.enlightenment.org/D833 Signed-off-by: Cedric Bail <cedric.bail@free.fr>
This commit is contained in:
parent
7a6943ad1e
commit
78564fac45
|
@ -108,7 +108,9 @@ std::pair<std::string, std::string> get_filename_info(std::string path)
|
|||
return {filename, namespace_};
|
||||
}
|
||||
}
|
||||
return {path, std::string()};
|
||||
std::string::reverse_iterator slash
|
||||
= std::find(path.rbegin(), path.rend(), '/');
|
||||
return {std::string(slash.base(), path.end()), std::string()};
|
||||
}
|
||||
|
||||
efl::eolian::eo_generator_options
|
||||
|
|
Loading…
Reference in New Issue