Before actually executing the ExtractAPIAction, clear the
CompilationInstance's input list and replace it with a single
synthesized file that just includes (or imports in ObjC) all the inputs.
Depends on D122141
Paths
| Differential D122175
[clang][extract-api] Enable processing of multiple headers ClosedPublic Authored by dang on Mar 21 2022, 1:29 PM.
Details Summary Before actually executing the ExtractAPIAction, clear the Depends on D122141
Diff Detail
Event TimelineComment Actions This is up as a "draft" right now. I am waiting on https://reviews.llvm.org/D122160 to land before doing a final rebase. This revision is now accepted and ready to land.Mar 22 2022, 4:54 PM
Closed by commit rGf833aab0d0bf: [clang][extract-api] Enable processing of multiple headers (authored by dang). · Explain WhyMar 23 2022, 12:05 PM This revision was automatically updated to reflect the committed changes. dang marked an inline comment as done.
Revision Contents
Diff 417073 clang/include/clang/SymbolGraph/FrontendActions.h
clang/lib/SymbolGraph/ExtractAPIConsumer.cpp
clang/test/SymbolGraph/global_record_multifile.c
|
This comment confused me a bit. By looking at the code further down, it only adds include statements for each header, which is different from merging all headers into a single header/buffer.