Move header files to specific include directories#7477
Conversation
Doxense CI Report for Windows 10
|
Result of foundationdb-pr-macos on macOS BigSur 11.5.2
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Doxense CI Report for Windows 10
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS BigSur 11.5.2
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS BigSur 11.5.2
|
Doxense CI Report for Windows 10
|
| @@ -0,0 +1,4 @@ | |||
| if(UNIX AND NOT APPLE) | |||
There was a problem hiding this comment.
a nit: it is interesting we use APPLE as operating system, for instance here we compare it with UNIX; alternate would have been UNIX ANS NOT MAC.
No action needed in this PR, just sharing a thought.
Doxense CI Report for Windows 10
|
sfc-gh-ahusain
left a comment
There was a problem hiding this comment.
Looks great! Thanks for doing this, Markus.
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Doxense CI Report for Windows 10
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Doxense CI Report for Windows 10
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS BigSur 11.5.2
|
I would like to do this in a separate commit. This PR is stressful: every single commit that touches a header file creates a merge conflict for this PR. |
|
Does that potentially cause issues? I know sometimes changing the case of a filename can break tools, and it might be easier to do it as part of the rename as a result. That's the main reason I brought it up as part of this activity. |
|
I think after this PR it should cause fewer issues. This PR changes cmake so that it now looks for source files at configure time. So I wouldn't anticipate problems. |
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
|
I suspect that this may cause problems for developers using case-insensitive file systems (e.g. on windows or macos) if they check out your changes before the follow-up PR to change case. I could be wrong though. |
|
Yes, but I don't think doing it in this change will reduce the number of problems (it might be even worse since now you can have a changes My suggestion would be to not just rename the |
|
I think that's a different type of problem, but we can just skip the renaming. It was just a nice to have cleanup operation that moving the files made easier. |
Result of foundationdb-pr on Linux CentOS 7
|
Currently we enforce include-modularization by copying header-files into the build directory. This is ugly and can cause confusions.
This PR addresses this by moving all header files into a special include directory.
Code-Reviewer Section
The general guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branchormainif this is the youngest branch)