|
|
|||
File indexing completed on 2026-05-10 08:36:56
0001 //===- InstallAPI/FileList.h ------------------------------------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 /// 0009 /// The JSON file list parser is used to communicate input to InstallAPI. 0010 /// 0011 //===----------------------------------------------------------------------===// 0012 0013 #ifndef LLVM_CLANG_INSTALLAPI_FILELIST_H 0014 #define LLVM_CLANG_INSTALLAPI_FILELIST_H 0015 0016 #include "clang/Basic/Diagnostic.h" 0017 #include "clang/Basic/FileManager.h" 0018 #include "clang/InstallAPI/HeaderFile.h" 0019 #include "llvm/Support/Error.h" 0020 #include "llvm/Support/MemoryBuffer.h" 0021 0022 namespace clang { 0023 namespace installapi { 0024 0025 class FileListReader { 0026 public: 0027 /// Decode JSON input and append header input into destination container. 0028 /// Headers are loaded in the order they appear in the JSON input. 0029 /// 0030 /// \param InputBuffer JSON input data. 0031 /// \param Destination Container to load headers into. 0032 /// \param FM Optional File Manager to validate input files exist. 0033 static llvm::Error 0034 loadHeaders(std::unique_ptr<llvm::MemoryBuffer> InputBuffer, 0035 HeaderSeq &Destination, clang::FileManager *FM = nullptr); 0036 0037 FileListReader() = delete; 0038 }; 0039 0040 } // namespace installapi 0041 } // namespace clang 0042 0043 #endif // LLVM_CLANG_INSTALLAPI_FILELIST_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|