cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=78564fac45d375208e723988ab544822afe0086a
commit 78564fac45d375208e723988ab544822afe0086a Author: Felipe Magno de Almeida <[email protected]> Date: Fri May 9 12:39:45 2014 +0200 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 <[email protected]> --- src/bin/eolian_cxx/eolian_cxx.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc index 8cc5e53..d3e194d 100644 --- a/src/bin/eolian_cxx/eolian_cxx.cc +++ b/src/bin/eolian_cxx/eolian_cxx.cc @@ -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 --
