[all-commits] [llvm/llvm-project] c8b37e: [clang] extend external_source_symbol attribute wi...

Alex Lorenz via All-commits all-commits at lists.llvm.org
Thu Feb 23 14:59:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8b37e48f6f00bb2aa3882ca3cc26082f85ca999
      https://github.com/llvm/llvm-project/commit/c8b37e48f6f00bb2aa3882ca3cc26082f85ca999
  Author: Alex Lorenz <arphaman at gmail.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/DiagnosticCommonKinds.td
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/include/clang/Parse/Parser.h
    M clang/lib/Index/USRGeneration.cpp
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Parse/Parser.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/AST/ast-dump-attr.cpp
    A clang/test/Index/Core/external-source-symbol-attr-cxx.cpp
    M clang/test/Index/Core/external-source-symbol-attr.m
    M clang/test/Parser/attr-external-source-symbol.m
    A clang/test/Sema/attr-external-source-symbol-cxx.cpp
    M clang/test/Sema/attr-external-source-symbol.c
    M clang/utils/TableGen/ClangAttrEmitter.cpp

  Log Message:
  -----------
  [clang] extend external_source_symbol attribute with USR clause

Allow the user to specify a concrete USR in the external_source_symbol attribute.
That will let Clang's indexer to use Swift USRs for Swift declarations that are
represented with C++ declarations.

This new clause is used by Swift when generating a C++ header representation
of a Swift module:
https://github.com/apple/swift/pull/63002

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




More information about the All-commits mailing list