[PATCH] D106614: [Clang] add btf_tag attribute

Yonghong Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 2 08:07:07 PDT 2021


yonghong-song updated this revision to Diff 363480.
yonghong-song edited the summary of this revision.
yonghong-song added a comment.

address Aaron and Andrii's comments:

- warned and ignored if a btf_tag attribute is added to record forward declaration.
- warned and ignored if a btf_tag attribute is in a prototype declaration but that attribute is not in later redeclaration or definition
- added tests to cover the above warn situations and unsupported declaration like enum
- fixed some missing points and formats in docs.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106614/new/

https://reviews.llvm.org/D106614

Files:
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/include/clang/Sema/Sema.h
  clang/lib/Sema/SemaDecl.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/Misc/pragma-attribute-supported-attributes-list.test
  clang/test/Sema/attr-btf_tag.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106614.363480.patch
Type: text/x-patch
Size: 8174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210802/816c5a16/attachment.bin>


More information about the cfe-commits mailing list