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

New document for gcc and clang annotation recommendations #268

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

siddhesh
Copy link
Contributor

Add a document with recommendation for clang and GCC attributes. This is a first draft and needs more information to be added to better describe the implications of each attribute.

The document is currently also missing the standard C attribute names for many of these attributes, which could potentially make them even more portable.

@david-a-wheeler
Copy link
Contributor

@siddhesh : Will you make adjustments per the reviews above?

Does the group believe that if these adjustments were made, this should be accepted?

@david-a-wheeler
Copy link
Contributor

Also: I'd be more directive about standards-based approaches. "In general, prefer approaches that are defined by standards and supported by multiple compilers, e.g., in C++ prefer [[fallthrough]] over a compiler-specific attribute." Or something like that.

@siddhesh
Copy link
Contributor Author

@siddhesh : Will you make adjustments per the reviews above?

Yes, I just haven't found a block of time to knock them off 😞 . I'll try to do it tonight or tomorrow so that we can discuss it during the call tomorrow if needed.

Add a document with recommendation for clang and GCC attributes.  This
is a first draft and needs more information to be added to better
describe the implications of each attribute.

The document is currently also missing the standard C attribute names
for many of these attributes, which could potentially make them even
more portable.

Signed-off-by: Siddhesh Poyarekar <[email protected]>
@thomasnyman thomasnyman merged commit 92d974c into ossf:main Mar 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants