Skip to content
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

Apply the Beman Standard; more tree refactoring #6

Merged
merged 6 commits into from
Jun 14, 2024

Conversation

neatudarius
Copy link
Member

@neatudarius neatudarius commented Jun 12, 2024

Apply the Beman Standard to C++ code & more tree refactoring:

  • Move optional.hpp to include/Beman/Optional26/optional.hpp; rename src/beman to src/Beman to match the include/ tree.
  • Rename static library from optional.a to beman_optional26.
  • Move/add examples to /examples,

This should solve remaining parts from #12, after #5.

#include <beman/optional/optional.hpp>

#include <beman/optional/optional.hpp>
#include <Beman/Optional26/optional.hpp>
Copy link
Member Author

Choose a reason for hiding this comment

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

No need for second include here, we already test this in src/beman/optional/optional.t.cpp.

@@ -85,27 +83,26 @@ TEST(OptionalMonadicTest, Transform) {

}

TEST(OptionalMonadicTest, TransformConstexpr) {

Copy link
Member Author

Choose a reason for hiding this comment

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

Some linting issues were also fixed.

@neatudarius neatudarius marked this pull request as ready for review June 12, 2024 05:56
@neatudarius neatudarius force-pushed the neatudarius/code-cleanup branch from 588da95 to 9cc9db0 Compare June 12, 2024 09:48
@neatudarius neatudarius changed the title apply Beman standard to C++ code Apply Beman standard & more more tree refactoring Jun 12, 2024
@neatudarius neatudarius force-pushed the neatudarius/code-cleanup branch 2 times, most recently from e85bbec to 1a8b227 Compare June 12, 2024 09:56
@neatudarius neatudarius force-pushed the neatudarius/code-cleanup branch from 1a8b227 to 221f1cf Compare June 12, 2024 09:59
@neatudarius neatudarius changed the title Apply Beman standard & more more tree refactoring Apply the Beman Standard; more tree refactoring Jun 13, 2024
@neatudarius neatudarius force-pushed the neatudarius/code-cleanup branch from 91a0342 to a88cbbb Compare June 13, 2024 17:49
Copy link
Member

@steve-downey steve-downey left a comment

Choose a reason for hiding this comment

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

LGTM 👍

src/Beman/optional/CMakeLists.txt Outdated Show resolved Hide resolved
@neatudarius neatudarius merged commit ce7d23c into main Jun 14, 2024
5 checks passed
steve-downey added a commit that referenced this pull request Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants