Commit a4aefb4c authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Mark all constructors taking a single argument as "explicit"

For a rationale, see http://www.sjbrown.co.uk/2004/05/01/always-use-explicit/
parent ec872e63
......@@ -308,7 +308,7 @@ class TagWithoutArgument
protected:
uint8_t op_code;
public:
inline
inline explicit
TagWithoutArgument(uint8_t op_code_arg) : op_code(op_code_arg)
{
};
......@@ -327,7 +327,7 @@ protected:
uint8_t op_code;
T1 arg1;
public:
inline
inline explicit
TagWithOneArgument(uint8_t op_code_arg) : op_code(op_code_arg)
{
};
......@@ -351,7 +351,7 @@ protected:
T1 arg1;
T2 arg2;
public:
inline
inline explicit
TagWithTwoArguments(uint8_t op_code_arg) : op_code(op_code_arg)
{
};
......@@ -376,7 +376,7 @@ protected:
T2 arg2;
T3 arg3;
public:
inline
inline explicit
TagWithThreeArguments(uint8_t op_code_arg) : op_code(op_code_arg)
{
};
......@@ -402,7 +402,7 @@ protected:
T3 arg3;
T4 arg4;
public:
inline
inline explicit
TagWithFourArguments(uint8_t op_code_arg) : op_code(op_code_arg)
{
};
......@@ -488,7 +488,7 @@ public:
FDIMT_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FDIMT)
{
};
inline
inline explicit
FDIMT_(unsigned int size_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FDIMT, size_arg)
{
};
......@@ -506,7 +506,7 @@ public:
FDIMST_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FDIMST)
{
};
inline
inline explicit
FDIMST_(const unsigned int size_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FDIMST, size_arg)
{
};
......@@ -524,7 +524,7 @@ public:
FLDC_() : TagWithOneArgument<double>::TagWithOneArgument(FLDC)
{
};
inline
inline explicit
FLDC_(const double value_arg) : TagWithOneArgument<double>::TagWithOneArgument(FLDC, value_arg)
{
};
......@@ -542,7 +542,7 @@ public:
FLDU_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDU)
{
};
inline
inline explicit
FLDU_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDU, pos_arg)
{
};
......@@ -560,7 +560,7 @@ public:
FLDSU_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDSU)
{
};
inline
inline explicit
FLDSU_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDSU, pos_arg)
{
};
......@@ -578,7 +578,7 @@ public:
FLDR_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDR)
{
};
inline
inline explicit
FLDR_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDR, pos_arg)
{
};
......@@ -596,7 +596,7 @@ public:
FLDT_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDT)
{
};
inline
inline explicit
FLDT_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDT, pos_arg)
{
};
......@@ -614,7 +614,7 @@ public:
FLDST_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDST)
{
};
inline
inline explicit
FLDST_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDST, pos_arg)
{
};
......@@ -632,7 +632,7 @@ public:
FSTPT_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPT)
{
};
inline
inline explicit
FSTPT_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPT, pos_arg)
{
};
......@@ -650,7 +650,7 @@ public:
FSTPST_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPST)
{
};
inline
inline explicit
FSTPST_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPST, pos_arg)
{
};
......@@ -668,7 +668,7 @@ public:
FSTPR_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPR)
{
};
inline
inline explicit
FSTPR_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPR, pos_arg)
{
};
......@@ -686,7 +686,7 @@ public:
FSTPU_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPU)
{
};
inline
inline explicit
FSTPU_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPU, pos_arg)
{
};
......@@ -704,7 +704,7 @@ public:
FSTPSU_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPSU)
{
};
inline
inline explicit
FSTPSU_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPSU, pos_arg)
{
};
......@@ -722,7 +722,7 @@ public:
FSTPG_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPG, 0)
{
};
inline
inline explicit
FSTPG_(const unsigned int pos_arg) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPG, pos_arg)
{
};
......@@ -796,7 +796,7 @@ public:
FUNARY_() : TagWithOneArgument<uint8_t>::TagWithOneArgument(FUNARY)
{
};
inline
inline explicit
FUNARY_(uint8_t op_type_arg) : TagWithOneArgument<uint8_t>::TagWithOneArgument(FUNARY, op_type_arg)
{
};
......@@ -814,7 +814,7 @@ public:
FBINARY_() : TagWithOneArgument<uint8_t>::TagWithOneArgument(FBINARY)
{
};
inline
inline explicit
FBINARY_(const int op_type_arg) : TagWithOneArgument<uint8_t>::TagWithOneArgument(FBINARY, op_type_arg)
{
};
......@@ -832,7 +832,7 @@ public:
FTRINARY_() : TagWithOneArgument<uint8_t>::TagWithOneArgument(FTRINARY)
{
};
inline
inline explicit
FTRINARY_(const int op_type_arg) : TagWithOneArgument<uint8_t>::TagWithOneArgument(FTRINARY, op_type_arg)
{
};
......@@ -850,7 +850,7 @@ public:
FOK_() : TagWithOneArgument<int>::TagWithOneArgument(FOK)
{
};
inline
inline explicit
FOK_(const int arg_arg) : TagWithOneArgument<int>::TagWithOneArgument(FOK, arg_arg)
{
};
......@@ -868,7 +868,7 @@ public:
FJMPIFEVAL_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FJMPIFEVAL)
{
};
inline
inline explicit
FJMPIFEVAL_(unsigned int arg_pos) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FJMPIFEVAL, arg_pos)
{
};
......@@ -886,7 +886,7 @@ public:
FJMP_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FJMP)
{
};
inline
inline explicit
FJMP_(unsigned int arg_pos) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FJMP, arg_pos)
{
};
......@@ -904,7 +904,7 @@ public:
FLDTEF_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDTEF)
{
};
inline
inline explicit
FLDTEF_(unsigned int number) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FLDTEF, number)
{
};
......@@ -922,7 +922,7 @@ public:
FSTPTEF_() : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPTEF)
{
};
inline
inline explicit
FSTPTEF_(unsigned int number) : TagWithOneArgument<unsigned int>::TagWithOneArgument(FSTPTEF, number)
{
};
......
......@@ -34,7 +34,7 @@ class SteadyStatement : public Statement
private:
const OptionsList options_list;
public:
SteadyStatement(OptionsList options_list_arg);
explicit SteadyStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -45,7 +45,7 @@ class CheckStatement : public Statement
private:
const OptionsList options_list;
public:
CheckStatement(OptionsList options_list_arg);
explicit CheckStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -56,7 +56,7 @@ class SimulStatement : public Statement
private:
const OptionsList options_list;
public:
SimulStatement(OptionsList options_list_arg);
explicit SimulStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -67,7 +67,7 @@ class PerfectForesightSetupStatement : public Statement
private:
const OptionsList options_list;
public:
PerfectForesightSetupStatement(OptionsList options_list_arg);
explicit PerfectForesightSetupStatement(OptionsList options_list_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......@@ -77,7 +77,7 @@ class PerfectForesightSolverStatement : public Statement
private:
const OptionsList options_list;
public:
PerfectForesightSolverStatement(OptionsList options_list_arg);
explicit PerfectForesightSolverStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -115,7 +115,7 @@ class ModelInfoStatement : public Statement
private:
const OptionsList options_list;
public:
ModelInfoStatement(OptionsList options_list_arg);
explicit ModelInfoStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -188,7 +188,7 @@ class VarEstimationStatement : public Statement
private:
const OptionsList options_list;
public:
VarEstimationStatement(OptionsList options_list_arg);
explicit VarEstimationStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
};
......@@ -210,7 +210,7 @@ class RamseyModelStatement : public Statement
private:
const OptionsList options_list;
public:
RamseyModelStatement(OptionsList options_list_arg);
explicit RamseyModelStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -270,7 +270,7 @@ class RplotStatement : public Statement
private:
const SymbolList symbol_list;
public:
RplotStatement(SymbolList symbol_list_arg);
explicit RplotStatement(SymbolList symbol_list_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......@@ -288,7 +288,7 @@ class PeriodsStatement : public Statement
private:
const int periods;
public:
PeriodsStatement(int periods_arg);
explicit PeriodsStatement(int periods_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......@@ -298,7 +298,7 @@ class DsampleStatement : public Statement
private:
const int val1, val2;
public:
DsampleStatement(int val1_arg);
explicit DsampleStatement(int val1_arg);
DsampleStatement(int val1_arg, int val2_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -322,7 +322,7 @@ class DynareSensitivityStatement : public Statement
private:
const OptionsList options_list;
public:
DynareSensitivityStatement(OptionsList options_list_arg);
explicit DynareSensitivityStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -388,7 +388,7 @@ class OsrParamsBoundsStatement : public Statement
private:
const vector<OsrParams> osr_params_list;
public:
OsrParamsBoundsStatement(vector<OsrParams> osr_params_list_arg);
explicit OsrParamsBoundsStatement(vector<OsrParams> osr_params_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -566,7 +566,7 @@ class SBVARStatement : public Statement
private:
const OptionsList options_list;
public:
SBVARStatement(OptionsList options_list_arg);
explicit SBVARStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -577,7 +577,7 @@ class MSSBVAREstimationStatement : public Statement
private:
const OptionsList options_list;
public:
MSSBVAREstimationStatement(OptionsList options_list_arg);
explicit MSSBVAREstimationStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -588,7 +588,7 @@ class MSSBVARSimulationStatement : public Statement
private:
const OptionsList options_list;
public:
MSSBVARSimulationStatement(OptionsList options_list_arg);
explicit MSSBVARSimulationStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -599,7 +599,7 @@ class MSSBVARComputeMDDStatement : public Statement
private:
const OptionsList options_list;
public:
MSSBVARComputeMDDStatement(OptionsList options_list_arg);
explicit MSSBVARComputeMDDStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -610,7 +610,7 @@ class MSSBVARComputeProbabilitiesStatement : public Statement
private:
const OptionsList options_list;
public:
MSSBVARComputeProbabilitiesStatement(OptionsList options_list_arg);
explicit MSSBVARComputeProbabilitiesStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -634,7 +634,7 @@ class MSSBVARForecastStatement : public Statement
private:
const OptionsList options_list;
public:
MSSBVARForecastStatement(OptionsList options_list_arg);
explicit MSSBVARForecastStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -645,7 +645,7 @@ class MSSBVARVarianceDecompositionStatement : public Statement
private:
const OptionsList options_list;
public:
MSSBVARVarianceDecompositionStatement(OptionsList options_list_arg);
explicit MSSBVARVarianceDecompositionStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -656,7 +656,7 @@ class IdentificationStatement : public Statement
private:
OptionsList options_list;
public:
IdentificationStatement(const OptionsList &options_list_arg);
explicit IdentificationStatement(const OptionsList &options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -700,7 +700,7 @@ class WriteLatexSteadyStateModelStatement : public Statement
private:
const SteadyStateModel &steady_state_model;
public:
WriteLatexSteadyStateModelStatement(const SteadyStateModel &steady_state_model_arg);
explicit WriteLatexSteadyStateModelStatement(const SteadyStateModel &steady_state_model_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -756,7 +756,7 @@ class ConditionalForecastStatement : public Statement
private:
const OptionsList options_list;
public:
ConditionalForecastStatement(OptionsList options_list_arg);
explicit ConditionalForecastStatement(OptionsList options_list_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......@@ -791,7 +791,7 @@ class ExtendedPathStatement : public Statement
private:
const OptionsList options_list;
public:
ExtendedPathStatement(OptionsList options_list_arg);
explicit ExtendedPathStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -835,7 +835,7 @@ private:
const OptionsList options_list;
map <pair<int, int >, double > restriction_map;
public:
MarkovSwitchingStatement(OptionsList options_list_arg);
explicit MarkovSwitchingStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeCOutput(ostream &output, const string &basename) override;
......@@ -847,7 +847,7 @@ class SvarStatement : public Statement
private:
const OptionsList options_list;
public:
SvarStatement(OptionsList options_list_arg);
explicit SvarStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -866,7 +866,7 @@ class SetTimeStatement : public Statement
private:
const OptionsList options_list;
public:
SetTimeStatement(OptionsList options_list_arg);
explicit SetTimeStatement(OptionsList options_list_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......@@ -876,7 +876,7 @@ class EstimationDataStatement : public Statement
private:
const OptionsList options_list;
public:
EstimationDataStatement(OptionsList options_list_arg);
explicit EstimationDataStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
......@@ -1150,7 +1150,7 @@ class Smoother2histvalStatement : public Statement
private:
const OptionsList options_list;
public:
Smoother2histvalStatement(OptionsList options_list_arg);
explicit Smoother2histvalStatement(OptionsList options_list_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......
......@@ -86,7 +86,7 @@ class Cluster
{
friend class ConfigFile;
public:
Cluster(member_nodes_t member_nodes_arg);
explicit Cluster(member_nodes_t member_nodes_arg);
protected:
member_nodes_t member_nodes;
......
......@@ -131,7 +131,7 @@ public:
{
public:
string name;
LocalVariableException(string name_arg) : name(move(name_arg))
explicit LocalVariableException(string name_arg) : name(move(name_arg))
{
}
};
......@@ -279,7 +279,7 @@ public:
{
public:
string name;
TrendException(string name_arg) : name(move(name_arg))
explicit TrendException(string name_arg) : name(move(name_arg))
{
}
};
......@@ -306,7 +306,7 @@ public:
public:
//! Symbol ID
int id;
UnknownLocalVariableException(int id_arg) : id(id_arg)
explicit UnknownLocalVariableException(int id_arg) : id(id_arg)
{
}
};
......
......@@ -37,7 +37,7 @@ public:
public:
//! Symbol ID
int id;
UnknownExternalFunctionSymbolIDException(int id_arg) : id(id_arg)
explicit UnknownExternalFunctionSymbolIDException(int id_arg) : id(id_arg)
{
}
};
......
......@@ -44,7 +44,7 @@ using namespace std;
class ModFile
{
public:
ModFile(WarningConsolidation &warnings_arg);
explicit ModFile(WarningConsolidation &warnings_arg);
//! Symbol table
SymbolTable symbol_table;
//! External Functions table
......
......@@ -129,7 +129,7 @@ class InitvalFileStatement : public Statement
private:
const string filename;
public:
InitvalFileStatement(string filename_arg);
explicit InitvalFileStatement(string filename_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......@@ -139,7 +139,7 @@ class HistvalFileStatement : public Statement
private:
const string filename;
public:
HistvalFileStatement(string filename_arg);
explicit HistvalFileStatement(string filename_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......@@ -165,7 +165,7 @@ class SaveParamsAndSteadyStateStatement : public Statement
private:
const string filename;
public:
SaveParamsAndSteadyStateStatement(string filename_arg);
explicit SaveParamsAndSteadyStateStatement(string filename_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......
......@@ -56,7 +56,7 @@ private:
static MatrixForm determineMatrixForm(const matrix_t &matrix) noexcept(false);
public:
SigmaeStatement(matrix_t matrix_arg) noexcept(false);
explicit SigmaeStatement(matrix_t matrix_arg) noexcept(false);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
};
......
......@@ -157,7 +157,7 @@ class NativeStatement : public Statement
private:
const string native_statement;
public:
NativeStatement(string native_statement_arg);
explicit NativeStatement(string native_statement_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......@@ -167,7 +167,7 @@ class VerbatimStatement : public Statement
private:
const string verbatim_statement;
public:
VerbatimStatement(string verbatim_statement_arg);
explicit VerbatimStatement(string verbatim_statement_arg);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......
......@@ -48,7 +48,7 @@ private:
map<string, map<tuple<int, int, int>, expr_t>> AR; // AR: name -> (eqn, lag, lhs_symb_id) -> expr_t
map<string, map<tuple<int, int, int>, expr_t>> EC; // EC: name -> (eqn, lag, col) -> expr_t
public:
TrendComponentModelTable(SymbolTable &symbol_table_arg);
explicit TrendComponentModelTable(SymbolTable &symbol_table_arg);
//! Add a trend component model
void addTrendComponentModel(string name_arg, vector<string> eqtags_arg,
......@@ -124,7 +124,7 @@ private:
map<string, vector<expr_t>> lhs_expr_t;
map<string, map<tuple<int, int, int>, expr_t>> AR; // AR: name -> (eqn, lag, lhs_symb_id) -> param_expr_t
public:
VarModelTable(SymbolTable &symbol_table_arg);
explicit VarModelTable(SymbolTable &symbol_table_arg);
//! Add a VAR model
void addVarModel(string name, vector<string> eqtags,
......
......@@ -167,7 +167,7 @@ public:
public:
//! Symbol name
string name;
UnknownSymbolNameException(string name_arg) : name(move(name_arg))
explicit UnknownSymbolNameException(string name_arg) : name(move(name_arg))
{
}
};
......@@ -177,7 +177,7 @@ public:
public:
//! Symbol ID
int id;
UnknownSymbolIDException(int id_arg) : id(id_arg)