Skip to content

Commit 1796dcb

Browse files
zporkyezolporintjftw
authored
Change creation/destruction order of pHandler(PARSER_PLUGIN_DIR) (#490)
* Change creation/destruction order of pHandler(PARSER_PLUGIN_DIR) and po::variables_map vm to avoid crash at end of program. * Remove comment. Co-authored-by: ezolpor <ezolpor@xubuntu-20.04-cc> Co-authored-by: Anett Fekete <anett.fekete@ericsson.com>
1 parent eb14f1a commit 1796dcb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

parser/src/parser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ int main(int argc, char* argv[])
217217
const std::string PARSER_PLUGIN_DIR = compassRoot + "/lib/parserplugin";
218218
const std::string SQL_DIR = compassRoot + "/share/codecompass/sql";
219219

220+
cc::parser::PluginHandler pHandler(PARSER_PLUGIN_DIR);
221+
220222
cc::util::initLogger();
221223

222224
//--- Process command line arguments ---//
@@ -235,7 +237,6 @@ int main(int argc, char* argv[])
235237

236238
//--- Load parsers ---//
237239

238-
cc::parser::PluginHandler pHandler(PARSER_PLUGIN_DIR);
239240
pHandler.loadPlugins(skipParserList);
240241

241242
//--- Add arguments of parsers ---//

0 commit comments

Comments
 (0)