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

Implicit include of checked header files #440

Merged
merged 8 commits into from
Apr 1, 2021

Conversation

sulekhark
Copy link
Contributor

Header file changes for the implicit inclusion of checked headers. This PR also deprecates the use of the macro __cplusplus in the header files and uses the new macro __checkedc instead.

@mattmccutchen-cci
Copy link
Member

mattmccutchen-cci commented Mar 18, 2021

Referencing #431 again. Is this ready for us to test (in combination with checkedc/checkedc-clang#998)?

@sulekhark sulekhark changed the title Implicit include of hdrfiles Implicit include of checked header files Mar 18, 2021
@sulekhark
Copy link
Contributor Author

@mattmccutchen-cci Yes, it is. You will need the implicit-include-of-hdrfiles branch on both the checkedc-clang and the checkedc repositories. At present, there is a merge conflict between this branch and master of checkedc-clang for the changes I made in two 3C test cases.

may not be present in all compilation environments (Ex. Windows).
Therefore, the wrapper header files and the Checked C header files
should guard their inclusion using __has_include_next.
This will also cause changes in the expected output of some test cases.
…ed.h

and inttypes_checked.h use the type wchar_t, whose definition is available
in stddef.h. The file inttypes_checked.h includes stddef.h but the other
two don't.
Copy link
Member

@dtarditi dtarditi left a comment

Choose a reason for hiding this comment

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

Looks good, thanks.

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.

3 participants