From c24110790c646f40c307c88656c3eca7ed134e01 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 16 May 2018 16:57:48 +1000 Subject: Backport: Move implementations into cxx file. Replace 0 and NULL with nullptr. Update comments. Backport of changeset 6955:440e02c389df. --- lexlib/LexerModule.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'lexlib/LexerModule.h') diff --git a/lexlib/LexerModule.h b/lexlib/LexerModule.h index c9ec4700d..ab338bec6 100644 --- a/lexlib/LexerModule.h +++ b/lexlib/LexerModule.h @@ -20,8 +20,9 @@ typedef ILexer *(*LexerFactoryFunction)(); /** * A LexerModule is responsible for lexing and folding a particular language. - * The class maintains a list of LexerModules which can be searched to find a + * The Catalogue class maintains a list of LexerModules which can be searched to find a * module appropriate to a particular language. + * The ExternalLexerModule subclass holds lexers loaded from DLLs or shared libraries. */ class LexerModule { protected: @@ -35,20 +36,21 @@ protected: public: const char *languageName; - LexerModule(int language_, + LexerModule( + int language_, LexerFunction fnLexer_, - const char *languageName_=0, - LexerFunction fnFolder_=0, - const char * const wordListDescriptions_[] = NULL, + const char *languageName_=nullptr, + LexerFunction fnFolder_= nullptr, + const char * const wordListDescriptions_[]=nullptr, const LexicalClass *lexClasses_=nullptr, size_t nClasses_=0); - LexerModule(int language_, + LexerModule( + int language_, LexerFactoryFunction fnFactory_, const char *languageName_, - const char * const wordListDescriptions_[] = NULL); - virtual ~LexerModule() { - } - int GetLanguage() const { return language; } + const char * const wordListDescriptions_[]=nullptr); + virtual ~LexerModule(); + int GetLanguage() const; // -1 is returned if no WordList information is available int GetNumWordLists() const; -- cgit v1.2.3