-
Notifications
You must be signed in to change notification settings - Fork 23
chore: make all identifiers snake case #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Cpp-Linter Report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-format v14.0.6
Click here for the full clang-format patch
diff --git a/example/pyramid.cpp b/example/pyramid.cpp
index 9e9249c..d28bfb9 100644
--- a/example/pyramid.cpp
+++ b/example/pyramid.cpp
@@ -13 +13,2 @@ void make_ring(mcpp::Coordinate base_pt, int side_len) {
- mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len), mcpp::Blocks::SANDSTONE);
+ mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len),
+ mcpp::Blocks::SANDSTONE);
@@ -18 +19 @@ void make_ring(mcpp::Coordinate base_pt, int side_len) {
- mcpp::Blocks::AIR);
+ mcpp::Blocks::AIR);
diff --git a/include/mcpp/block.h b/include/mcpp/block.h
index dc9ce79..747ae11 100644
--- a/include/mcpp/block.h
+++ b/include/mcpp/block.h
@@ -17 +17 @@ public:
- constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod) {};
+ constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod){};
Have any feedback or feature suggestions? Share it here.
| void make_ring(mcpp::Coordinate base_pt, int side_len) { | ||
| // Flat plane | ||
| mc.setBlocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len), mcpp::Blocks::SANDSTONE); | ||
| mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len), mcpp::Blocks::SANDSTONE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestion
| mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len), mcpp::Blocks::SANDSTONE); | |
| mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len, 0, side_len), | |
| mcpp::Blocks::SANDSTONE); |
| base_pt = base_pt + mcpp::Coordinate(1, 0, 1); | ||
| mc.setBlocks(base_pt, base_pt + mcpp::Coordinate(side_len - 2, 0, side_len - 2), | ||
| mc.set_blocks(base_pt, base_pt + mcpp::Coordinate(side_len - 2, 0, side_len - 2), | ||
| mcpp::Blocks::AIR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestion
| mcpp::Blocks::AIR); | |
| mcpp::Blocks::AIR); |
|
|
||
| // NOLINTNEXTLINE | ||
| constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod){}; | ||
| constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod) {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestion
| constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod) {}; | |
| constexpr BlockType(uint8_t id = 0, uint8_t mod = 0) : id(id), mod(mod){}; |
Overdue. Also needs a vibe check.