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

Separate files into modules #36

Merged
merged 3 commits into from
Aug 28, 2018
Merged

Separate files into modules #36

merged 3 commits into from
Aug 28, 2018

Conversation

doom
Copy link
Contributor

@doom doom commented Aug 26, 2018

Closes #35

@doom doom requested a review from Gaspard-- August 26, 2018 17:25
Copy link
Owner

@Gaspard-- Gaspard-- left a comment

Choose a reason for hiding this comment

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

It's hard to judge if I've checked everything because moving, renaming, refactoring are all combined in one commit. I'll probably catch more things upon re-reviewing.

return self_pointer_like{func(*it)};
}

#define CONTAINER_VIEW_ITERATOR_BINARY_PREDICATE(OP) \
Copy link
Owner

Choose a reason for hiding this comment

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

Might wanna update macro name

Copy link
Owner

Choose a reason for hiding this comment

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

There is another such macro in this file I had missed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, I plan to do so in upcoming commits, as this one is only about moving files around and formatting

OP data; \
return *this; \
}
#define CLAWS_TAGGED_DATA_PREFIX_OP(OP) \
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not really convinced moving \ so far to the right helps with readability

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, actually I used clang-format with the configuration file from this repository, but I agree they were moved quite far. I will update the configuration file to align the \ as far left as possible

Copy link
Owner

@Gaspard-- Gaspard-- Aug 26, 2018

Choose a reason for hiding this comment

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

Oh damn, that clang-format was supposed to be gone (clang format doesn't handle lambdas well, at least back then)


set(MODULE_PUBLIC_HEADERS
"${MODULE_PATH}/circular_iterator.hpp"
"${MODULE_PATH}/iterator_pair.hpp"
Copy link
Owner

Choose a reason for hiding this comment

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

I think claws::iterator_pair could be a container actually, but I'm fine with this too

${CMAKE_CURRENT_SOURCE_DIR}/claws/container)

set(MODULE_PUBLIC_HEADERS
"${MODULE_PATH}/array_ops.hpp"
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this belongs here. But it's deprecated anyway, we'll remove this when claws::vect is in a good state.

///
/// *Defined in "HandleTypes.hpp"*
/// (TODO: rename to handle_types.hpp)*
///
Copy link
Owner

Choose a reason for hiding this comment

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

Good idea to get rid of the todo. However the part above is a doc comment, it should stay.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh okay, I don't really understand the doc comment then, can you clarify please ?

Copy link
Owner

Choose a reason for hiding this comment

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

It just links the source file, which allows people to easily go and check the implementation

Copy link
Owner

Choose a reason for hiding this comment

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

(Doc comments are preceded by /// or /**)

Copy link
Owner

Choose a reason for hiding this comment

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

Doc was apparently broken (#37 )

@Gaspard-- Gaspard-- merged commit 24acc7d into Gaspard--:master Aug 28, 2018
@doom doom deleted the modules/35 branch August 28, 2018 20:38
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.

None yet

2 participants