diff options
author | Ankur <arsenic.secondary@gmail.com> | 2023-03-13 17:58:39 +0530 |
---|---|---|
committer | Ankur <arsenic.secondary@gmail.com> | 2023-03-13 18:05:16 +0530 |
commit | 58825d2cf947d0b4fb6590c17212c388cd3ff5cf (patch) | |
tree | b272ac6ed973de1f74c067da09942b68fa47ee2a /clang/lib/ExtractAPI/ExtractAPIConsumer.cpp | |
parent | 5a0ad86cf345bdac53f4b18ebbba582aebe9e2b3 (diff) | |
download | llvm-58825d2cf947d0b4fb6590c17212c388cd3ff5cf.zip llvm-58825d2cf947d0b4fb6590c17212c388cd3ff5cf.tar.gz llvm-58825d2cf947d0b4fb6590c17212c388cd3ff5cf.tar.bz2 |
[clang][ExtractAPI] Add multiple file support to --extract-api-ignores
- Modify -extract-api-ignores command line option to accept multiple
arguments
- Update APIIgnoresList to operate on a file list instead of a single file
- Add new test verifying the functionality
- fix #61242 on GitHub issue tracker
Reviewed By: dang
Differential Revision: https://reviews.llvm.org/D145869
Diffstat (limited to 'clang/lib/ExtractAPI/ExtractAPIConsumer.cpp')
-rw-r--r-- | clang/lib/ExtractAPI/ExtractAPIConsumer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp b/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp index 644845e..c1e47b1 100644 --- a/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp +++ b/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp @@ -339,9 +339,9 @@ ExtractAPIAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { Policy.AnonymousTagLocations = false; CI.getASTContext().setPrintingPolicy(Policy); - if (!CI.getFrontendOpts().ExtractAPIIgnoresFile.empty()) { + if (!CI.getFrontendOpts().ExtractAPIIgnoresFileList.empty()) { llvm::handleAllErrors( - APIIgnoresList::create(CI.getFrontendOpts().ExtractAPIIgnoresFile, + APIIgnoresList::create(CI.getFrontendOpts().ExtractAPIIgnoresFileList, CI.getFileManager()) .moveInto(IgnoresList), [&CI](const IgnoresFileNotFound &Err) { |