[clang][extract-api] Process only APIs declared in inputs
We should only process APIs declared in the command line inputs to avoid drowning the ExtractAPI output with symbols the user doesn't care about. This is achieved by keeping track of the provided input files and checking that the associated Decl or Macro is declared in one of those files. Differential Revision: https://reviews.llvm.org/D123148
Showing
- clang/include/clang/ExtractAPI/FrontendActions.h 3 additions, 0 deletionsclang/include/clang/ExtractAPI/FrontendActions.h
- clang/lib/ExtractAPI/ExtractAPIConsumer.cpp 80 additions, 7 deletionsclang/lib/ExtractAPI/ExtractAPIConsumer.cpp
- clang/test/ExtractAPI/known_files_only.c 100 additions, 0 deletionsclang/test/ExtractAPI/known_files_only.c
- clang/test/ExtractAPI/known_files_only_hmap.c 164 additions, 0 deletionsclang/test/ExtractAPI/known_files_only_hmap.c
clang/test/ExtractAPI/known_files_only.c
0 → 100644
Please register or sign in to comment