message: Ran clang-format on utils/
diff: @@ -37,30 +37,30 @@ int main(int argc, char *argv[])
  {
  std::string scmmodelfile, isomapfile, outputfile;
  bool save_shape_only;
  - try {
  + try
  + {
  po::options_description desc("Allowed options");
  - desc.add_options()
  - ("help,h",
  - "display the help message")
  - ("model,m", po::value<std::string>(&scmmodelfile)->required(),
  - "a CVSSP .scm Morphable Model file")
  - ("isomap,t", po::value<std::string>(&isomapfile),
  - "optional isomap containing the texture mapping coordinates")
  - ("shape-only,s", po::value<bool>(&save_shape_only)->default_value(false)->implicit_value(true),
  - "save only the shape-model part of the full 3DMM")
  - ("output,o", po::value<std::string>(&outputfile)->required()->default_value("converted_model.bin"),
  - "output filename for the Morphable Model in cereal binary format")
  - ;
  + desc.add_options()(
  + "help,h", "display the help message")(
  + "model,m", po::value<std::string>(&scmmodelfile)->required(),
  + "a CVSSP .scm Morphable Model file")(
  + "isomap,t", po::value<std::string>(&isomapfile),
  + "optional isomap containing the texture mapping coordinates")(
  + "shape-only,s", po::value<bool>(&save_shape_only)->default_value(false)->implicit_value(true),
  + "save only the shape-model part of the full 3DMM")(
  + "output,o", po::value<std::string>(&outputfile)->required()->default_value("converted_model.bin"),
  + "output filename for the Morphable Model in cereal binary format");
  po::variables_map vm;
  po::store(po::command_line_parser(argc, argv).options(desc).run(), vm);
  - if (vm.count("help")) {
  + if (vm.count("help"))
  + {
  cout << "Usage: scm-to-cereal [options]" << endl;
  cout << desc;
  return EXIT_SUCCESS;
  }
  po::notify(vm);
  - }
  - catch (const po::error& e) {
  + } catch (const po::error& e)
  + {
  cout << "Error while parsing command-line arguments: " << e.what() << endl;
  cout << "Use --help to display a list of options." << endl;
  return EXIT_FAILURE;
  @@ -72,10 +72,12 @@ int main(int argc, char *argv[])
  if (save_shape_only)
  {
  // Save only the shape model - to generate the public sfm_shape_3448.bin
  - const morphablemodel::MorphableModel shape_only_model(morphable_model.get_shape_model(), morphablemodel::PcaModel(), morphable_model.get_texture_coordinates());
  + const morphablemodel::MorphableModel shape_only_model(morphable_model.get_shape_model(),
  + morphablemodel::PcaModel(),
  + morphable_model.get_texture_coordinates());
  morphablemodel::save_model(shape_only_model, outputfile);
  - }
  - else {
  + } else
  + {
  morphablemodel::save_model(morphable_model, outputfile);
  }
  