[clang] Avoid linking libdl unless needed
[llvm-project.git] / libc / utils / HdrGen / PublicAPICommand.h
blob45ea1cf9889ed7795beb99b01a1b82fd21358376
1 //===-- Implementation of PublicAPICommand ----------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_UTILS_HDRGEN_PUBLICAPICOMMAND_H
10 #define LLVM_LIBC_UTILS_HDRGEN_PUBLICAPICOMMAND_H
12 #include "Command.h"
14 #include "llvm/ADT/StringRef.h"
16 #include <string>
17 #include <unordered_map>
18 #include <unordered_set>
20 namespace llvm {
22 class raw_ostream;
23 class Record;
24 class RecordKeeper;
26 } // namespace llvm
28 namespace llvm_libc {
30 class PublicAPICommand : public Command {
31 public:
32 static const char Name[];
34 void run(llvm::raw_ostream &OS, const ArgVector &Args,
35 llvm::StringRef StdHeader, llvm::RecordKeeper &Records,
36 const Command::ErrorReporter &Reporter) const override;
39 } // namespace llvm_libc
41 #endif // LLVM_LIBC_UTILS_HDRGEN_PUBLICAPICOMMAND_H