-
Notifications
You must be signed in to change notification settings - Fork 1
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
Randomize layout docs #27
Conversation
…into no_ranomize_layout_attr
PR was slightly behind, update and fix punctuation
…ndstruct/llvm-project into no_ranomize_layout_attr
All attributes that emit warnings are required to be members of a warning group; this is checked by the clang-test regression suite.
All supported attributes must be etched in stone in the supported attributes regression test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any issues with this documentation.
|
For future usage, Cole gave a great list of links and how to use this: https://clang.llvm.org/docs/InternalsManual.html#documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compiled and ran clang-tblgen -gen-attr-docs -I /path/to/clang/include /path/to/clang/include/clang/Basic/Attr.td -o /path/to/clang/docs/AttributeReference.rst
and viewed the output.
Looks good!
Navigate to ~/llvm-project/build/bin and run: ./clang-tblgen -gen-attr-docs -I ../../clang/include/ ../../clang/include/clang/Basic/Attr.td -o ../../clang/docs/AttributeReference.rst and then navigate to ../../clang/docs/AttributeReference.rst and search for "randomize_layout" to see the addition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Built and ran tbl-gen, everything ran fine.
Here is a PR for the stand alone documentation for the radnomize_layout attribute.