fix board constructor back rank pieces (#19) #19
Annotations
1 error, 10 warnings, and 5 notices
/tests/test.cpp:1:10 [clang-diagnostic-error]:
tests/test.cpp#L1
'catch2/catch_test_macros.hpp' file not found
|
/src/board.cpp:107:18 [readability-implicit-bool-conversion]:
src/board.cpp#L107
implicit conversion 'int' -> bool
|
/src/board.cpp:146:46 [clang-diagnostic-unused-parameter]:
src/board.cpp#L146
unused parameter 'notation'
|
/src/board.cpp:150:19 [performance-for-range-copy]:
src/board.cpp#L150
loop variable is copied but only used as const reference; consider making it a const reference
|
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:99:2 [clang-diagnostic-delete-abstract-non-virtual-dtor]:
usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h#L99
delete called on 'Piece' that is abstract but has non-virtual destructor
|
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:99:2 [clang-diagnostic-delete-non-abstract-non-virtual-dtor]:
usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h#L99
delete called on non-final 'Bishop' that has virtual functions but non-virtual destructor
|
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:99:2 [clang-diagnostic-delete-non-abstract-non-virtual-dtor]:
usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h#L99
delete called on non-final 'King' that has virtual functions but non-virtual destructor
|
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:99:2 [clang-diagnostic-delete-non-abstract-non-virtual-dtor]:
usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h#L99
delete called on non-final 'Knight' that has virtual functions but non-virtual destructor
|
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:99:2 [clang-diagnostic-delete-non-abstract-non-virtual-dtor]:
usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h#L99
delete called on non-final 'Pawn' that has virtual functions but non-virtual destructor
|
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:99:2 [clang-diagnostic-delete-non-abstract-non-virtual-dtor]:
usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h#L99
delete called on non-final 'Queen' that has virtual functions but non-virtual destructor
|
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:99:2 [clang-diagnostic-delete-non-abstract-non-virtual-dtor]:
usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h#L99
delete called on non-final 'Rook' that has virtual functions but non-virtual destructor
|
Run clang-format on src/board.cpp:
src/board.cpp#L1
File src/board.cpp does not conform to Custom style guidelines. (lines 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 28, 29, 30, 31, 33, 34, 36, 37, 38, 39, 40, 41, 43, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 63, 65, 66, 67, 68, 69, 70, 71, 75, 76, 80, 81, 82, 83, 84, 85, 89, 90, 94, 95, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 121, 122, 123, 124, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 138, 139, 140, 141, 142, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 161, 163, 164, 165, 166, 170, 171, 172, 173, 174, 175, 176, 177, 178, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 194)
|
Run clang-format on src/board.hpp:
src/board.hpp#L1
File src/board.hpp does not conform to Custom style guidelines. (lines 4, 14, 15, 16, 17, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33)
|
Run clang-format on src/piece.cpp:
src/piece.cpp#L1
File src/piece.cpp does not conform to Custom style guidelines. (lines 6, 7, 11, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 44, 48, 49, 52, 53, 56, 57, 60, 61, 64, 65, 68, 69, 72, 74, 77, 80, 81, 85, 86, 90, 91, 95, 96, 100, 101)
|
Run clang-format on src/piece.hpp:
src/piece.hpp#L1
File src/piece.hpp does not conform to Custom style guidelines. (lines 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 32, 33, 34, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 53, 54, 55, 56, 57, 60, 61, 62, 63, 66, 67, 68, 69, 72, 73, 74, 75, 78, 79, 80, 81, 84, 85, 86, 87)
|
Run clang-format on tests/test.cpp:
tests/test.cpp#L1
File tests/test.cpp does not conform to Custom style guidelines. (lines 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 85, 88, 89, 90, 91, 92, 94, 95, 96, 99, 102, 103, 104, 105, 106, 107, 108, 109, 110)
|