Merge pull request #2850 from nburles/use_explicit_constructor
[C++ codegen] Add explicit keyword to constructor
This commit is contained in:
commit
ffef8cb278
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue