//===- ExtractAPI/APIIgnoresList.cpp -------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// /// \file /// This file implements APIIgnoresList that allows users to specifiy a file /// containing symbols to ignore during API extraction. /// //===----------------------------------------------------------------------===// #include "clang/ExtractAPI/APIIgnoresList.h" #include "clang/Basic/FileManager.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/Error.h" usingnamespaceclang; usingnamespaceclang::extractapi; usingnamespacellvm; char IgnoresFileNotFound::ID; void IgnoresFileNotFound::log(llvm::raw_ostream &os) const { … } std::error_code IgnoresFileNotFound::convertToErrorCode() const { … } Expected<APIIgnoresList> APIIgnoresList::create(const FilePathList &IgnoresFilePathList, FileManager &FM) { … } bool APIIgnoresList::shouldIgnore(StringRef SymbolName) const { … }