Skip to content

chore: make all identifiers snake case - #115

Open
rozukke wants to merge 4 commits into
mainfrom
chore/switch-snake-case
Open

chore: make all identifiers snake case#115
rozukke wants to merge 4 commits into
mainfrom
chore/switch-snake-case

Conversation

@rozukke

Copy link
Copy Markdown
Owner

Overdue. Also needs a vibe check.

@rozukkerozukke added the documentation Improvements or additions to documentation label Apr 3, 2025
@rozukkerozukke self-assigned this Apr 3, 2025
github-actions[bot]

This comment was marked as outdated.

@github-actions
github-actionsBot dismissed their stale reviewApril 3, 2025 06:40

outdated suggestion

github-actions[bot]

This comment was marked as outdated.

@github-actions
github-actionsBot dismissed their stale reviewApril 3, 2025 06:46

outdated suggestion

github-actions[bot]

This comment was marked as outdated.

@github-actions

Copy link
Copy Markdown
Contributor

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v14.0.6) reports: 2 file(s) not formatted
  • example/pyramid.cpp
  • include/mcpp/block.h

Have any feedback or feature suggestions? Share it here.

@github-actions
github-actionsBot dismissed their stale reviewApril 3, 2025 06:49

outdated suggestion

@github-actionsgithub-actionsBot left a comment

Copy link
Copy Markdown
Contributor

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.

Comment threadexample/pyramid.cpp
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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
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);

Comment threadexample/pyramid.cpp
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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
mcpp::Blocks::AIR);
mcpp::Blocks::AIR);

Comment threadinclude/mcpp/block.h

// 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){};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
constexpr BlockType(uint8_tid=0, uint8_tmod=0) : id(id), mod(mod){};
constexpr BlockType(uint8_tid=0, uint8_tmod=0) : id(id), mod(mod){};

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@rozukke