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

#include "../../something/something.hpp" is not easy to read #6

Closed
wants to merge 4 commits into from

Conversation

shinyaohtani
Copy link

close #5

#include <something/something.hpp> is better. There is no problem if this PR is not merged, but since I noticed this, I issued it as PR.

Copy link
Owner

@X-Ryl669 X-Ryl669 left a comment

Choose a reason for hiding this comment

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

Before accepting this change, I must make sure it still work with ESP32's build system (that's were I'm using it currently). It's a little bit tricky to use their build system and include path is a pain to get right. I'll try the build when I'm home and let you know if it's ok.

@@ -2,10 +2,10 @@
#define hpp_CPP_MQTTClient_CPP_hpp

// Configuration is done via macros
#include "MQTTConfig.hpp"
#include <Network/Clients/MQTTConfig.hpp>
Copy link
Owner

Choose a reason for hiding this comment

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

This is wrong, IMHO. A file in the same folder must stay with its "" include path.

Copy link
Author

Choose a reason for hiding this comment

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

I think there is such a way of thinking. However, since this is a library, it is kinder to write the include path specification from the file in the user-visible path to the user-visible file in a general format (<something/something.hpp>) so that it can be used as a reference when the user includes it by the user.

@shinyaohtani
Copy link
Author

ESP32's build system

Ah, that certainly has to be confirmed. I can't cooperate because I don't have the ESP32 right now. I'm sorry.

We can delete warning message for using "#pragma message" is not recommended
by set -Wno-#pragma-messages to clang.
but we can't delete warning completely using -Wno-#pragma-messages because
contents of message is also treated as warning.
@X-Ryl669
Copy link
Owner

You have removed a lot of configuration code from the project, so I can't accept this patch as is. I've implemented and reincluded the ideas you've spotted here, it's pushed in master. I advise you to merge the change to ensure it fits your need. Cheers!

@shinyaohtani
Copy link
Author

@X-Ryl669
I'm very sorry for the confusion. I forgot making a brach for the Pull Request.
3980171
and
32a51db
was meant to be a completely private change and I didn't intend to include it in the pull request. Really sorry.

@shinyaohtani
Copy link
Author

Please close this PR without merge.

@X-Ryl669
Copy link
Owner

Ok, so I'm closing this. Have a nice day!

@X-Ryl669 X-Ryl669 closed this Feb 17, 2021
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.

Clean source dependency for readability
3 participants