17#include "llvm/ADT/STLExtras.h"
18#include "llvm/Support/Error.h"
27 os <<
"Could not find API ignores file " <<
Path;
31 return llvm::inconvertibleErrorCode();
40 for (
const auto &CurrentIgnoresFilePath : IgnoresFilePathList) {
44 return make_error<IgnoresFileNotFound>(CurrentIgnoresFilePath);
46 auto Buffer = std::move(BufferOrErr.get());
47 Buffer->getBuffer().split(Lines,
'\n', -1,
49 symbolBufferList.push_back(std::move(Buffer));
54 transform(Lines, Lines.begin(), [](StringRef
Line) { return Line.trim(); });
56 return APIIgnoresList(std::move(Lines), std::move(symbolBufferList));
60 auto It = lower_bound(SymbolsToIgnore, SymbolName);
61 return (It != SymbolsToIgnore.end()) && (*It == SymbolName);
Defines the clang::FileManager interface and associated types.
Implements support for file system lookup, file system caching, and directory search management.
llvm::ErrorOr< std::unique_ptr< llvm::MemoryBuffer > > getBufferForFile(FileEntryRef Entry, bool isVolatile=false, bool RequiresNullTerminator=true, std::optional< int64_t > MaybeLimit=std::nullopt)
Open the specified file as a MemoryBuffer, returning a new MemoryBuffer if successful,...
The JSON file list parser is used to communicate input to InstallAPI.
Diagnostic wrappers for TextAPI types for error reporting.