Add explicit keyword to constructors

To avoid unexpected implicit casts.
This commit is contained in:
Nathan Burles 2020-06-16 13:47:38 +01:00
parent 3d9351f61e
commit 1692ed2a17
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public:
};
<endif>
<lexer.name>(antlr4::CharStream *input);
explicit <lexer.name>(antlr4::CharStream *input);
~<lexer.name>();
<namedActions.members>
@ -290,7 +290,7 @@ public:
};
<endif>
<parser.name>(antlr4::TokenStream *input);
explicit <parser.name>(antlr4::TokenStream *input);
~<parser.name>();
virtual std::string getGrammarFileName() const override;