diff options
author | Jose <jose@zeroc.com> | 2017-02-01 23:16:30 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-02-01 23:16:30 +0100 |
commit | ca131951f8d81ea3da13277172a24234b5c848ea (patch) | |
tree | 28b8d9ad6a09f550ef43f3b24df8048da8e70d7d /cpp/src/slice2js/Gen.h | |
parent | Added entries for support of try-with-resources/with statement in Java/Python (diff) | |
download | ice-ca131951f8d81ea3da13277172a24234b5c848ea.tar.bz2 ice-ca131951f8d81ea3da13277172a24234b5c848ea.tar.xz ice-ca131951f8d81ea3da13277172a24234b5c848ea.zip |
Add --no-warn option to Slice compilers
Diffstat (limited to 'cpp/src/slice2js/Gen.h')
-rw-r--r-- | cpp/src/slice2js/Gen.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cpp/src/slice2js/Gen.h b/cpp/src/slice2js/Gen.h index 8196ba1b48b..dc3b65f18ba 100644 --- a/cpp/src/slice2js/Gen.h +++ b/cpp/src/slice2js/Gen.h @@ -19,7 +19,7 @@ class JsVisitor : public JsGenerator, public ParserVisitor { public: - JsVisitor(::IceUtilInternal::Output&); + JsVisitor(::IceUtilInternal::Output&, int); virtual ~JsVisitor(); protected: @@ -44,12 +44,14 @@ public: Gen(const std::string&, const std::vector<std::string>&, - const std::string&); + const std::string&, + int); Gen(const std::string&, const std::vector<std::string>&, const std::string&, - std::ostream&); + std::ostream&, + int); ~Gen(); @@ -64,6 +66,7 @@ private: std::vector<std::string> _includePaths; std::string _fileBase; bool _useStdout; + int _warningLevel; void printHeader(); @@ -71,7 +74,7 @@ private: { public: - RequireVisitor(::IceUtilInternal::Output&, std::vector<std::string>, bool, bool); + RequireVisitor(::IceUtilInternal::Output&, std::vector<std::string>, bool, bool, int); virtual bool visitClassDefStart(const ClassDefPtr&); virtual bool visitStructStart(const StructPtr&); @@ -103,7 +106,7 @@ private: { public: - TypesVisitor(::IceUtilInternal::Output&, std::vector< std::string>, bool); + TypesVisitor(::IceUtilInternal::Output&, std::vector< std::string>, bool, int); virtual bool visitModuleStart(const ModulePtr&); virtual void visitModuleEnd(const ModulePtr&); @@ -127,7 +130,7 @@ private: { public: - ExportVisitor(::IceUtilInternal::Output&, bool, bool); + ExportVisitor(::IceUtilInternal::Output&, bool, bool, int); virtual bool visitModuleStart(const ModulePtr&); private: |