Merge pull request #2850 from nburles/use_explicit_constructor

[C++ codegen] Add explicit keyword to constructor
This commit is contained in:
Terence Parr 2020-09-10 10:53:33 -07:00 committed by GitHub
commit ffef8cb278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;