[all-commits] [llvm/llvm-project] a62868: [libclang][ObjC] Inherit availability attribute fr...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Tue Jul 19 09:17:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a62868aaeaac1c6464a3acbc90209458e4594338
      https://github.com/llvm/llvm-project/commit/a62868aaeaac1c6464a3acbc90209458e4594338
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2022-07-19 (Tue, 19 Jul 2022)

  Changed paths:
    A clang/test/Index/availability.mm
    M clang/tools/libclang/CIndex.cpp

  Log Message:
  -----------
  [libclang][ObjC] Inherit availability attribute from containing decls or
interface decls

This patch teaches getCursorPlatformAvailabilityForDecl to look for
availability attributes on the containing decls or interface decls if
the current decl doesn't have any availability attributes.

Differential Revision: https://reviews.llvm.org/D129504




More information about the All-commits mailing list