diff options
Diffstat (limited to 'cpp/include/Slice/Parser.h')
-rw-r--r-- | cpp/include/Slice/Parser.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/include/Slice/Parser.h b/cpp/include/Slice/Parser.h index aec3c2e934b..f48004a9acc 100644 --- a/cpp/include/Slice/Parser.h +++ b/cpp/include/Slice/Parser.h @@ -364,6 +364,7 @@ protected: Container(const UnitPtr&); + void checkPrefix(const std::string&) const; bool checkInterfaceAndLocal(const std::string&, bool, bool, bool, bool, bool); ContainedList _contents; @@ -771,10 +772,12 @@ class SLICE_API Unit : virtual public Container { public: - static UnitPtr createUnit(bool, bool); + static UnitPtr createUnit(bool, bool, bool); bool ignRedefs() const; + bool allowIcePrefix() const; + void setComment(const std::string&); std::string currentComment(); // Not const, as this function removes the current comment. std::string currentFile() const; @@ -816,10 +819,11 @@ public: private: - Unit(bool, bool); + Unit(bool, bool, bool); bool _ignRedefs; bool _all; + bool _allowIcePrefix; int _errors; std::string _currentComment; int _currentLine; @@ -832,7 +836,7 @@ private: std::map<std::string, ContainedList> _contentMap; }; -extern SLICE_API Unit* unit; // The current parser for bison/flex +extern SLICE_API Unit* unit; // The current parser for bison/flex // ---------------------------------------------------------------------- // CICompare -- function object to do case-insensitive string comparison. |