[all-commits] [llvm/llvm-project] 15bf0e: [clang][extract-api] Use correct language info fro...

Zixu Wang via All-commits all-commits at lists.llvm.org
Tue Mar 29 10:06:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15bf0e567375c977cf7d7b48465eb1561e890b54
      https://github.com/llvm/llvm-project/commit/15bf0e567375c977cf7d7b48465eb1561e890b54
  Author: Zixu Wang <zixu_wang at apple.com>
  Date:   2022-03-29 (Tue, 29 Mar 2022)

  Changed paths:
    M clang/include/clang/ExtractAPI/API.h
    M clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
    M clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
    A clang/test/ExtractAPI/language.c

  Log Message:
  -----------
  [clang][extract-api] Use correct language info from inputs

The current way of getting the `clang::Language` from `LangOptions` does
not handle Objective-C correctly because `clang::Language::ObjC` does
not correspond to any `LangStandard`. This patch passes the correct
`Language` from the frontend input information.

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




More information about the All-commits mailing list