Skip to content

Fix indentation warnings

Mattias Ellert requested to merge ellert/HepMC3:fix-indentation-warnings into master
/builddir/build/BUILD/HepMC3-3.1.1/include/HepMC3/LHEF.h: In member function 'bool LHEF::Cut::passCuts(const std::vector<long int>&, const std::vector<std::vector<double> >&) const':
/builddir/build/BUILD/HepMC3-3.1.1/include/HepMC3/LHEF.h:823:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  823 |     if ( match(id[i]) && !match(0, id[i]) )
      |     ^~
/builddir/build/BUILD/HepMC3-3.1.1/include/HepMC3/LHEF.h:825:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  825 |       if ( outside(pt) ) return false;
      |       ^~
/builddir/build/BUILD/HepMC3-3.1.1/include/HepMC3/LHEF.h: In constructor 'LHEF::HEPEUP::HEPEUP(const LHEF::XMLTag&, LHEF::HEPRUP&)':
/builddir/build/BUILD/HepMC3-3.1.1/include/HepMC3/LHEF.h:2237:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 2237 |     if ( tags[i]->name == "event" )
      |     ^~
/builddir/build/BUILD/HepMC3-3.1.1/include/HepMC3/LHEF.h:2239:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 2239 |       return;
      |       ^~~~~~
/builddir/build/BUILD/HepMC3-3.1.1/include/HepMC3/LHEF.h: In member function 'bool LHEF::HEPEUP::setSubEvent(unsigned int)':
/builddir/build/BUILD/HepMC3-3.1.1/include/HepMC3/LHEF.h:2560:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 2560 |     for ( int j = 0, M = weights.size(); j < M; ++j )
      |     ^~~
/builddir/build/BUILD/HepMC3-3.1.1/include/HepMC3/LHEF.h:2562:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
 2562 |       currentWeight = 0;
      |       ^~~~~~~~~~~~~

Merge request reports