[all-commits] [llvm/llvm-project] c5fb1a: Revert "[Clang] Ignore BTFTag attr if used as a ty...
yonghong-song via All-commits
all-commits at lists.llvm.org
Mon Oct 11 15:50:24 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c5fb1a09533ec2ed43a80f39c1592e5ee887ef9e
https://github.com/llvm/llvm-project/commit/c5fb1a09533ec2ed43a80f39c1592e5ee887ef9e
Author: Yonghong Song <yhs at fb.com>
Date: 2021-10-11 (Mon, 11 Oct 2021)
Changed paths:
M clang/include/clang/Basic/Attr.td
M clang/include/clang/Basic/AttrDocs.td
M clang/lib/AST/TypePrinter.cpp
M clang/lib/Sema/SemaType.cpp
M clang/test/Sema/attr-btf_tag.c
Log Message:
-----------
Revert "[Clang] Ignore BTFTag attr if used as a type attribute"
This reverts commit b875343873a584965daf507d73ff1fe71eab1953.
Per discussion in https://reviews.llvm.org/D111199, instead to make
existing btf_tag attribute as a type-or-decl attribute, we will
make existing btf_tag attribute as a decl only attribute, and
introduce btf_type_tag as a type only attribute. This will make
it easy for cases like typedef where an attribute may be applied
as either a type attribute or a decl attribute.
More information about the All-commits
mailing list