[all-commits] [llvm/llvm-project] 7a527f: Teach AttachPreviousImpl to inherit MSInheritanceA...

Vaibhav Garg via All-commits all-commits at lists.llvm.org
Fri Aug 21 09:06:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a527f17776be78ec44b88e82b39afb65fc148e4
      https://github.com/llvm/llvm-project/commit/7a527f17776be78ec44b88e82b39afb65fc148e4
  Author: Vaibhav Garg <gargvaibhav64 at gmail.com>
  Date:   2020-08-21 (Fri, 21 Aug 2020)

  Changed paths:
    M clang/lib/Serialization/ASTReaderDecl.cpp
    A clang/test/Modules/Inputs/inherit-attribute/a.h
    A clang/test/Modules/Inputs/inherit-attribute/b.h
    A clang/test/Modules/Inputs/inherit-attribute/c.h
    A clang/test/Modules/Inputs/inherit-attribute/module.modulemap
    A clang/test/Modules/inherit-attribute.cpp

  Log Message:
  -----------
  Teach AttachPreviousImpl to inherit MSInheritanceAttr attribute

This commit teaches ASTDeclReader::attachPreviousDecl to successfully merge
two Decl's when one contains an inheritable attribute like the
MSInheritanceAttr. Usually, attributes that are needed to be 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.




More information about the All-commits mailing list