Skip to content

Conversation

@MiguelCompany
Copy link
Member

No description provided.


### Including headers

Using angle brackets `#include <header>` is prefered over double quotes `#include "header"`, as it allows to mock a header
Copy link
Member

Choose a reason for hiding this comment

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

It should be preferred the faster option for the preprocessor. If the path is relative, we should use #include "common/Types.hpp". If the path is not relative, we should use #include <fastdds/dds/core/Types.hpp>.

I can understand that a relative path with .. is not liked to be used because visual prettiness, like #include "../rtps/Common.hpp". Although my hand will not shake writing that. All for help to the speed of compilation.

And in case a #include "header" interferes with a mock, always we can change it to #include <header>.

Copy link
Contributor

@JLBuenoLopez JLBuenoLopez left a comment

Choose a reason for hiding this comment

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

A couple of typos.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

Co-authored-by: José Luis Bueno López <69244257+JLBuenoLopez-eProsima@users.noreply.github.com>
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.

4 participants