[all-commits] [llvm/llvm-project] edbb99: Ensure -extract-api handles multiple headers corre...

Daniel Grumberg via All-commits all-commits at lists.llvm.org
Mon Mar 21 14:05:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: edbb99a7edc6f2dca0ebb27d95c624aa6479eb21
      https://github.com/llvm/llvm-project/commit/edbb99a7edc6f2dca0ebb27d95c624aa6479eb21
  Author: Daniel Grumberg <dgrumberg at apple.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Driver/Action.h
    M clang/include/clang/Driver/Types.def
    M clang/lib/Driver/Action.cpp
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChain.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/extract-api-multiheader-kind-diag.h
    A clang/test/Driver/extract-api-multiheader.h
    R clang/test/Driver/extract-api.c
    A clang/test/Driver/extract-api.h
    M clang/test/SymbolGraph/global_record.c

  Log Message:
  -----------
  Ensure -extract-api handles multiple headers correctly

clang -extract-api should accept multiple headers and forward them to a
single CC1 instance. This change introduces a new ExtractAPIJobAction.
Currently API Extraction is done during the Precompile phase as this is
the current phase that matches the requirements the most. Adding a new
phase would need to change some logic in how phases are scheduled. If
the headers scheduled for API extraction are of different types the
driver emits a diagnostic.

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




More information about the All-commits mailing list