diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-12-23 15:25:57 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-12-23 15:25:57 +0100 |
commit | 732cfc2ed384df69e87186644698667aabb7ce6e (patch) | |
tree | 490eaab6df5c75bc5fd779596fb4934a6eb44364 /cpp/src/slice2php/Main.cpp | |
parent | Fixed (ICE-7469) - Fix libnames in Windows resource files (diff) | |
download | ice-732cfc2ed384df69e87186644698667aabb7ce6e.tar.bz2 ice-732cfc2ed384df69e87186644698667aabb7ce6e.tar.xz ice-732cfc2ed384df69e87186644698667aabb7ce6e.zip |
Removed IcePHP dependency on Parser.h
Diffstat (limited to 'cpp/src/slice2php/Main.cpp')
-rw-r--r-- | cpp/src/slice2php/Main.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/src/slice2php/Main.cpp b/cpp/src/slice2php/Main.cpp index e5cb1ba7654..dd7b6f66159 100644 --- a/cpp/src/slice2php/Main.cpp +++ b/cpp/src/slice2php/Main.cpp @@ -20,6 +20,7 @@ #include <Slice/Preprocessor.h> #include <Slice/FileTracker.h> #include <Slice/PHPUtil.h> +#include <Slice/Parser.h> #include <Slice/Util.h> #include <cstring> #include <climits> @@ -41,6 +42,22 @@ using namespace Slice::PHP; using namespace IceUtil; using namespace IceUtilInternal; +namespace +{ + +// +// Get the fully-qualified name of the given definition. If a suffix is provided, +// it is prepended to the definition's unqualified name. If the nameSuffix +// is provided, it is appended to the container's name. +// +string +getAbsolute(const ContainedPtr& cont, bool ns, const string& pfx = std::string(), const string& suffix = std::string()) +{ + return scopedToName(cont->scope() + pfx + cont->name() + suffix, ns); +} + +} + // // CodeVisitor generates the PHP mapping for a translation unit. // |