[PATCH] D83174: Teach AttachPreviousImpl to inherit MSInheritanceAttr attribute
Vaibhav Garg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 5 03:12:22 PDT 2020
gargvaibhav64 created this revision.
gargvaibhav64 added reviewers: rsmith, v.g.vassilev.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This commit attaches teaches ASTDeclReader::attachPreviousDecl to successfully merge two Decl's when one contains an inheritable attribute like the MSInheritanceAttr. Usually, attributes that are needed to present along the redeclaration chain are attached during ASTReading from ASTDeclReader::attachPreviousDecl, but no such thing is done for inheritable attributes. Currently, only the logic for merging MSInheritanceAttr is provided.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83174
Files:
clang/lib/Serialization/ASTReaderDecl.cpp
clang/test/Modules/Inputs/inherit-attribute/a.h
clang/test/Modules/Inputs/inherit-attribute/b.h
clang/test/Modules/Inputs/inherit-attribute/c.h
clang/test/Modules/Inputs/inherit-attribute/module.modulemap
clang/test/Modules/inherit-attribute.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83174.275544.patch
Type: text/x-patch
Size: 3452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200705/84187b61/attachment.bin>
More information about the cfe-commits
mailing list