Skip to content

Commit

Permalink
clang-tidy llvm-*
Browse files Browse the repository at this point in the history
  • Loading branch information
MFraters committed Jun 27, 2021
1 parent b999d4d commit ca00e4d
Show file tree
Hide file tree
Showing 78 changed files with 556 additions and 593 deletions.
2 changes: 1 addition & 1 deletion app/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

#include <algorithm>
#include <exception>
#include <iostream>
#include <fstream>
#include <iostream>
#include <memory>

#include <world_builder/assert.h>
Expand Down
3 changes: 3 additions & 0 deletions include/visualization/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#ifndef WORLD_BUILDER_VISUALIZATION_MAIN_H_
#define WORLD_BUILDER_VISUALIZATION_MAIN_H_

#include <vector>
#include <string>

void project_on_sphere(double, double &, double &, double &);

void lay_points(double x1, double y1, double z1,
Expand Down
2 changes: 1 addition & 1 deletion include/world_builder/nan.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef _world_nan_h
#define _world_nan_h

#include <cmath>
#include <limits>

namespace WorldBuilder
{
Expand Down
7 changes: 4 additions & 3 deletions source/coordinate_systems/cartesian.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <world_builder/assert.h>
#include <world_builder/coordinate_systems/cartesian.h>

#include <world_builder/assert.h>

namespace WorldBuilder
{
namespace CoordinateSystems
Expand Down Expand Up @@ -87,6 +88,6 @@ namespace WorldBuilder
* Register plugin
*/
WB_REGISTER_COORDINATE_SYSTEM(Cartesian, cartesian)
}
}
} // namespace CoordinateSystems
} // namespace WorldBuilder

9 changes: 4 additions & 5 deletions source/coordinate_systems/interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
*/

#include <world_builder/coordinate_systems/interface.h>
#include <world_builder/coordinate_systems/cartesian.h>
#include <world_builder/coordinate_systems/spherical.h>
#include <world_builder/assert.h>

#include <world_builder/assert.h>
#include <world_builder/types/object.h>

#include <algorithm>


Expand Down Expand Up @@ -97,6 +96,6 @@ namespace WorldBuilder
// thrown when the name is not present.
return get_factory_map().at(lower_case_name)->create(world);
}
}
}
} // namespace CoordinateSystems
} // namespace WorldBuilder

9 changes: 5 additions & 4 deletions source/coordinate_systems/spherical.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <world_builder/assert.h>
#include <world_builder/coordinate_systems/spherical.h>
#include <world_builder/types/string.h>

#include <world_builder/assert.h>
#include <world_builder/types/object.h>
#include <world_builder/types/string.h>

namespace WorldBuilder
{
Expand Down Expand Up @@ -132,6 +133,6 @@ namespace WorldBuilder
* Register plugin
*/
WB_REGISTER_COORDINATE_SYSTEM(Spherical, spherical)
}
}
} // namespace CoordinateSystems
} // namespace WorldBuilder

13 changes: 5 additions & 8 deletions source/features/continental_plate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@
*/

#include <world_builder/features/continental_plate.h>
#include <world_builder/features/continental_plate_models/temperature/interface.h>
#include <world_builder/features/continental_plate_models/composition/interface.h>

#include <world_builder/utilities.h>
#include <world_builder/assert.h>
#include <world_builder/nan.h>
#include <world_builder/parameters.h>

#include <world_builder/types/array.h>
#include <world_builder/types/double.h>
#include <world_builder/types/string.h>
#include <world_builder/types/object.h>
#include <world_builder/types/unsigned_int.h>
#include <world_builder/types/plugin_system.h>
#include <world_builder/types/string.h>
#include <world_builder/types/unsigned_int.h>
#include <world_builder/utilities.h>


namespace WorldBuilder
Expand Down Expand Up @@ -237,5 +234,5 @@ namespace WorldBuilder

WB_REGISTER_FEATURE(ContinentalPlate, continental plate)

}
}
} // namespace Features
} // namespace WorldBuilder
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#include <algorithm>
#include <world_builder/features/continental_plate_models/composition/interface.h>

#include <world_builder/assert.h>
#include <world_builder/types/string.h>
#include <world_builder/types/object.h>
#include <world_builder/features/continental_plate_models/composition/interface.h>
#include <world_builder/types/string.h>

#include <algorithm>


namespace WorldBuilder
Expand Down Expand Up @@ -78,8 +78,8 @@ namespace WorldBuilder
// thrown when the name is not present.
return get_factory_map().at(lower_case_name)->create(world);
}
}
}
}
}
} // namespace Composition
} // namespace ContinentalPlateModels
} // namespace Features
} // namespace WorldBuilder

16 changes: 8 additions & 8 deletions source/features/continental_plate_models/composition/uniform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <world_builder/utilities.h>
#include <world_builder/features/continental_plate_models/composition/uniform.h>

#include <world_builder/assert.h>
#include <world_builder/nan.h>
#include <world_builder/parameters.h>

#include <world_builder/types/array.h>
#include <world_builder/types/double.h>
#include <world_builder/types/string.h>
#include <world_builder/types/object.h>
#include <world_builder/types/string.h>
#include <world_builder/types/unsigned_int.h>
#include <world_builder/features/continental_plate_models/composition/uniform.h>
#include <world_builder/utilities.h>


namespace WorldBuilder
Expand Down Expand Up @@ -114,9 +114,9 @@ namespace WorldBuilder
return composition;
}
WB_REGISTER_FEATURE_CONTINENTAL_PLATE_COMPOSITION_MODEL(Uniform, uniform)
}
}
}
}
} // namespace Composition
} // namespace ContinentalPlateModels
} // namespace Features
} // namespace WorldBuilder


15 changes: 7 additions & 8 deletions source/features/continental_plate_models/grains/interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#include <algorithm>
#include <world_builder/features/continental_plate_models/grains/interface.h>

#include <world_builder/assert.h>
#include <world_builder/types/string.h>
#include <world_builder/types/object.h>
#include <world_builder/features/continental_plate_models/grains/interface.h>
#include <world_builder/types/string.h>

#include <algorithm>

namespace WorldBuilder
{
Expand Down Expand Up @@ -78,8 +77,8 @@ namespace WorldBuilder
// thrown when the name is not present.
return get_factory_map().at(lower_case_name)->create(world);
}
}
}
}
}
} // namespace Grains
} // namespace ContinentalPlateModels
} // namespace Features
} // namespace WorldBuilder

Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <world_builder/utilities.h>
#include <world_builder/features/continental_plate_models/grains/random_uniform_distribution.h>

#include <world_builder/assert.h>
#include <world_builder/nan.h>
#include <world_builder/parameters.h>

#include <world_builder/types/array.h>
#include <world_builder/types/bool.h>
#include <world_builder/types/double.h>
#include <world_builder/types/string.h>
#include <world_builder/types/object.h>
#include <world_builder/types/unsigned_int.h>
#include <world_builder/types/plugin_system.h>
#include <world_builder/features/continental_plate_models/grains/random_uniform_distribution.h>
#include <world_builder/types/string.h>
#include <world_builder/types/unsigned_int.h>
#include <world_builder/utilities.h>

#include <algorithm>

Expand Down Expand Up @@ -208,9 +208,9 @@ namespace WorldBuilder
return grains_local;
}
WB_REGISTER_FEATURE_CONTINENTAL_PLATE_GRAINS_MODEL(RandomUniformDistribution, random uniform distribution)
}
}
}
}
} // namespace Grains
} // namespace ContinentalPlateModels
} // namespace Features
} // namespace WorldBuilder


18 changes: 9 additions & 9 deletions source/features/continental_plate_models/grains/uniform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <world_builder/utilities.h>
#include <world_builder/features/continental_plate_models/grains/uniform.h>

#include <world_builder/assert.h>
#include <world_builder/nan.h>
#include <world_builder/parameters.h>

#include <world_builder/types/array.h>
#include <world_builder/types/double.h>
#include <world_builder/types/string.h>
#include <world_builder/types/object.h>
#include <world_builder/types/unsigned_int.h>
#include <world_builder/types/plugin_system.h>
#include <world_builder/features/continental_plate_models/grains/uniform.h>
#include <world_builder/types/string.h>
#include <world_builder/types/unsigned_int.h>
#include <world_builder/utilities.h>

#include <algorithm>

Expand Down Expand Up @@ -160,9 +160,9 @@ namespace WorldBuilder
return grains_local;
}
WB_REGISTER_FEATURE_CONTINENTAL_PLATE_GRAINS_MODEL(Uniform, uniform)
}
}
}
}
} // namespace Grains
} // namespace ContinentalPlateModels
} // namespace Features
} // namespace WorldBuilder


Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <world_builder/utilities.h>
#include <world_builder/features/continental_plate_models/temperature/adiabatic.h>

#include <world_builder/assert.h>
#include <world_builder/nan.h>
#include <world_builder/parameters.h>

#include <world_builder/types/double.h>
#include <world_builder/types/string.h>
#include <world_builder/types/object.h>
#include <world_builder/features/continental_plate_models/temperature/adiabatic.h>
#include <world_builder/types/string.h>
#include <world_builder/utilities.h>


namespace WorldBuilder
Expand Down Expand Up @@ -156,8 +156,8 @@ namespace WorldBuilder
}

WB_REGISTER_FEATURE_CONTINENTAL_PLATE_TEMPERATURE_MODEL(Adiabatic, adiabatic)
}
}
}
}
} // namespace Temperature
} // namespace ContinentalPlateModels
} // namespace Features
} // namespace WorldBuilder

19 changes: 8 additions & 11 deletions source/features/continental_plate_models/temperature/interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#include <algorithm>
#include <world_builder/features/continental_plate_models/temperature/interface.h>

#include <world_builder/assert.h>
#include <world_builder/types/string.h>
#include <world_builder/types/object.h>
#include <world_builder/features/continental_plate_models/temperature/interface.h>
#include <world_builder/features/continental_plate_models/temperature/adiabatic.h>
#include <world_builder/features/continental_plate_models/temperature/linear.h>
#include <world_builder/features/continental_plate_models/temperature/uniform.h>
#include <world_builder/types/string.h>

#include <algorithm>

namespace WorldBuilder
{
Expand Down Expand Up @@ -92,8 +89,8 @@ namespace WorldBuilder
// thrown when the name is not present.
return get_factory_map().at(lower_case_name)->create(world);
}
}
}
}
}
} // namespace Temperature
} // namespace ContinentalPlateModels
} // namespace Features
} // namespace WorldBuilder

Loading

0 comments on commit ca00e4d

Please sign in to comment.