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

Rename doctest_impl.h to doctest.cpp for less confusion. #185

Merged
merged 1 commit into from Feb 18, 2019
Merged

Rename doctest_impl.h to doctest.cpp for less confusion. #185

merged 1 commit into from Feb 18, 2019

Conversation

dimztimz
Copy link
Contributor

Description

doctest_impl.h was not really a header file, it contains ODR definitions.
It was meant to be included by one and exactly one implementation file.
It was confusing for contributors. Now it is more clear.

Catch2 names its implementation files .cpp.

As a consequence, we simplified the creation of doctest with main.
Extra file doctest_main.cpp is not needed.

doctest_impl.h was not really a header file, it contains ODR definitions.
It was meant to be included by one and exactly one implementation file.
It was confusing for contributors. Now it is more clear.

Catch2 names its implementation files .cpp.

As a consequence, we simplified the creation of doctest with main.
Extra file doctest_main.cpp is not needed.
@onqtam
Copy link
Member

onqtam commented Feb 18, 2019

Good idea - thanks!

@onqtam onqtam merged commit 447b155 into doctest:dev Feb 18, 2019
@dimztimz dimztimz deleted the file-structure branch February 18, 2019 14:11
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