aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
diff options
context:
space:
mode:
authorAnkur <arsenic.secondary@gmail.com>2023-03-13 17:58:39 +0530
committerAnkur <arsenic.secondary@gmail.com>2023-03-13 18:05:16 +0530
commit58825d2cf947d0b4fb6590c17212c388cd3ff5cf (patch)
treeb272ac6ed973de1f74c067da09942b68fa47ee2a /clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
parent5a0ad86cf345bdac53f4b18ebbba582aebe9e2b3 (diff)
downloadllvm-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.cpp4
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) {