summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-05-09 12:39:45 +0200
committerCedric Bail <cedric.bail@free.fr>2014-05-09 12:39:49 +0200
commit78564fac45d375208e723988ab544822afe0086a (patch)
tree8e34f64770fdc76d901d51855d28f8f1ee61aa40 /src/bin/eolian_cxx
parent7a6943ad1e960bc7398972d716f88ee259d91d36 (diff)
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>
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_cxx.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc
index 8cc5e53580..d3e194d15c 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)
108 return {filename, namespace_}; 108 return {filename, namespace_};
109 } 109 }
110 } 110 }
111 return {path, std::string()}; 111 std::string::reverse_iterator slash
112 = std::find(path.rbegin(), path.rend(), '/');
113 return {std::string(slash.base(), path.end()), std::string()};
112} 114}
113 115
114efl::eolian::eo_generator_options 116efl::eolian::eo_generator_options