[PATCH] D122495: [clang][extract-api] Use correct language info from inputs

Zixu Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 25 11:47:38 PDT 2022


zixuw created this revision.
Herald added a reviewer: dang.
Herald added a project: All.
zixuw requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122495

Files:
  clang/include/clang/ExtractAPI/API.h
  clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
  clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
  clang/test/ExtractAPI/language.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122495.418284.patch
Type: text/x-patch
Size: 9317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220325/3a38c657/attachment.bin>


More information about the cfe-commits mailing list