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

Remove unnecessary "fmt/" prefix inside fmt directory #397

Merged
merged 2 commits into from
Oct 11, 2016
Merged

Remove unnecessary "fmt/" prefix inside fmt directory #397

merged 2 commits into from
Oct 11, 2016

Conversation

chronoxor
Copy link
Contributor

I suggest removing "fmt/" prefix in *.h, *.cc files inside fmt directory. Consider someone using fmt library as a git submodule or third-party library and has format.h helper file with direct referencing:

include "../../modules/fmt/fmt/format.h"

include "../../modules/fmt/fmt/ostream.h"

Nevertheless I put explicit relative path to format.h and ostream.h I need to add include_directories("modules/fmt") anywhere I use my format.h helper, because ostream.h contins the following inside:

include "fmt/format.h"

and I believe it could be easily replaced without any side effects with

include "format.h"

@vitaut vitaut merged commit 1500f00 into fmtlib:master Oct 11, 2016
@vitaut
Copy link
Contributor

vitaut commented Oct 11, 2016

The fmt prefix does seem unnecessary because includes in the same directory take precedence over the ones on the search paths. Merged, thanks!

foonathan pushed a commit that referenced this pull request Oct 23, 2016
…tional include_directories() in each project. (#397)

(cherry picked from commit 1500f00)
foonathan pushed a commit that referenced this pull request Oct 23, 2016
…tional include_directories() in each project. (#397)

(cherry picked from commit 1500f00)
vitaut added a commit that referenced this pull request Jan 20, 2018
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