diff options
author | Mark Spruiell <mes@zeroc.com> | 2010-05-24 09:51:55 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2010-05-24 09:51:55 -0700 |
commit | 487dd39e3483217cccb80f46e7a65674c7f6c05a (patch) | |
tree | 75fd3df459df63c2646a4e20c7a32f1ff05a09dd /cpp/include | |
parent | bug 4623 - missing doc comments (diff) | |
download | ice-487dd39e3483217cccb80f46e7a65674c7f6c05a.tar.bz2 ice-487dd39e3483217cccb80f46e7a65674c7f6c05a.tar.xz ice-487dd39e3483217cccb80f46e7a65674c7f6c05a.zip |
bug 4752 - allow underscores in Slice identifiers
Diffstat (limited to 'cpp/include')
-rw-r--r-- | cpp/include/Slice/Parser.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/include/Slice/Parser.h b/cpp/include/Slice/Parser.h index e961ea35223..c0d6a2c7300 100644 --- a/cpp/include/Slice/Parser.h +++ b/cpp/include/Slice/Parser.h @@ -456,7 +456,7 @@ protected: Container(const UnitPtr&); - void checkPrefix(const std::string&) const; + void checkIdentifier(const std::string&) const; bool checkInterfaceAndLocal(const std::string&, bool, bool, bool, bool, bool); bool checkGlobalMetaData(const StringList&, const StringList&); bool validateConstant(const std::string&, const TypePtr&, const SyntaxTreeBasePtr&, const std::string&, bool); @@ -937,11 +937,11 @@ class SLICE_API Unit : virtual public Container { public: - static UnitPtr createUnit(bool, bool, bool, const StringList& = StringList()); + static UnitPtr createUnit(bool, bool, bool, bool, const StringList& = StringList()); bool ignRedefs() const; - bool allowIcePrefix() const; + bool allowUnderscore() const; void setComment(const std::string&); std::string currentComment(); // Not const, as this function removes the current comment. @@ -1004,12 +1004,13 @@ public: private: - Unit(bool, bool, bool, const StringList&); + Unit(bool, bool, bool, bool, const StringList&); static void eraseWhiteSpace(::std::string&); bool _ignRedefs; bool _all; bool _allowIcePrefix; + bool _allowUnderscore; StringList _defaultGlobalMetaData; int _errors; std::string _currentComment; |