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

Implement __has_include() #102

Merged
merged 16 commits into from
Jun 27, 2020
Merged

Conversation

jefftrull
Copy link
Collaborator

@jefftrull jefftrull commented Jun 24, 2020

Implement C++17 feature (and vendor extension, previously) __has_include()

Includes feature flags and unit tests.

@jefftrull jefftrull requested a review from hkaiser June 24, 2020 21:55
I wanted to be sure the parser liked all the input and not just some
preamble, but this is a better approach than testing for all input consumed.
global query-replace "defined" to "has_include" had unexpected side effects
I gotta be in here somewhere, I guess
Copy link
Collaborator

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

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

Could you add a test that uses __has_include() in a pre-C++20 setting making sure it has no special meaning in this case?

@jefftrull jefftrull marked this pull request as ready for review June 26, 2020 21:54
@jefftrull jefftrull changed the title WIP: __has_include Implement __has_include() Jun 26, 2020
@jefftrull
Copy link
Collaborator Author

I'm satisfied with the code at this point and am just waiting for CI to finish. Will wait for any final feedback.

@jefftrull jefftrull merged commit ee0a7c1 into boostorg:develop Jun 27, 2020
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