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

Cmake modernizations, update .clangformat #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bndkr
Copy link

@bndkr bndkr commented Apr 26, 2023

Changes:

  • Cmake: Expose main library to IDEs (visual studio)
  • Cmake: Change test names for readability, add source grouping
  • Fix windows build warnings
  • edit .clang-format

Copy link
Owner

@BiagioFesta BiagioFesta left a comment

Choose a reason for hiding this comment

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

Thank you for the PR

* Here you can set the size of the population and the random seed used internally.
* \note `populationSize` must be greater than zero, otherwise Undefined Behavior.
* Here you can set the size of the population and the random seed used
* internally. \note `populationSize` must be greater than zero, otherwise
Copy link
Owner

Choose a reason for hiding this comment

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

are we able to keep indentation for doxygen comments?

  • Indentation should be aligned with the first line
  • \command should be prefixed by newline

*/
void initialize(const std::size_t populationSize, const SeedT rndSeed = DefaultSeed);
void initialize(const std::size_t populationSize,
Copy link
Owner

Choose a reason for hiding this comment

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

nit: why is breaking line?

@@ -104,8 +113,9 @@ class EvolutionNet {
};

template <int NumInput, int NumOutput, bool Bias, typename ParamConfig>
void EvolutionNet<NumInput, NumOutput, Bias, ParamConfig>::initialize(const std::size_t populationSize,
const SeedT rndSeed) {
void EvolutionNet<NumInput, NumOutput, Bias, ParamConfig>::initialize(
Copy link
Owner

Choose a reason for hiding this comment

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

I would prefer having first argument on the same line. we can adjust the clang format I guess

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