Fix Clang-Tidy warnings
This commit is contained in:
parent
71e412696d
commit
eaf61585ea
|
@ -1 +1 @@
|
||||||
Checks: 'modernize-*,-modernize-use-nodiscard,-modernize-use-trailing-return-type,cppcoreguidelines-*,bugprone-*,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-avoid-magic-numbers'
|
Checks: 'modernize-*,-modernize-use-nodiscard,-modernize-use-trailing-return-type,cppcoreguidelines-*,bugprone-*,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-bounds-*,-readability-convert-member-functions-to-static'
|
||||||
|
|
|
@ -8,8 +8,8 @@ const std::size_t COLUMNS = 28;
|
||||||
enum class Cell {
|
enum class Cell {
|
||||||
wall = 0,
|
wall = 0,
|
||||||
pellet = 1,
|
pellet = 1,
|
||||||
nothing = 2,
|
// nothing = 2,
|
||||||
// missing 3
|
// missing 3,
|
||||||
power_pellet = 4,
|
power_pellet = 4,
|
||||||
pen = 5,
|
pen = 5,
|
||||||
left_portal = 6,
|
left_portal = 6,
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#include "Canvas.hpp"
|
#include "Canvas.hpp"
|
||||||
#include "Game.hpp"
|
|
||||||
#include "Scaling.hpp"
|
#include "Scaling.hpp"
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
namespace pacman {
|
namespace pacman {
|
||||||
|
|
||||||
struct Position {
|
struct Position {
|
||||||
double x;
|
double x = 0;
|
||||||
double y;
|
double y = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GridPosition {
|
struct GridPosition {
|
||||||
|
|
Loading…
Reference in New Issue