clang-tools
23.0.0git
llvm-project
clang-tools-extra
clang-doc
support
File.h
Go to the documentation of this file.
1
//===----------------------------------------------------------------------===//
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
//===----------------------------------------------------------------------===//
8
///
9
/// \file
10
/// This file contains file I/O utility functions used in clang-doc,
11
/// such as creating directories and writing output files.
12
///
13
//===----------------------------------------------------------------------===//
14
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_FILE_H
15
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_FILE_H
16
17
#include "llvm/ADT/SmallString.h"
18
#include "llvm/Support/Error.h"
19
20
namespace
clang
{
21
namespace
doc
{
22
23
llvm::Error
copyFile
(llvm::StringRef FilePath, llvm::StringRef
OutDirectory
);
24
25
llvm::SmallString<128>
computeRelativePath
(llvm::StringRef Destination,
26
llvm::StringRef Origin);
27
28
}
// namespace doc
29
}
// namespace clang
30
31
#endif
// LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_FILE_H
OutDirectory
static llvm::cl::opt< std::string > OutDirectory("output", llvm::cl::desc("Directory for outputting generated files."), llvm::cl::init("docs"), llvm::cl::cat(ClangDocCategory))
clang::doc
Definition
ClangDocBenchmark.cpp:31
clang::doc::copyFile
llvm::Error copyFile(llvm::StringRef FilePath, llvm::StringRef OutDirectory)
Definition
File.cpp:21
clang::doc::computeRelativePath
llvm::SmallString< 128 > computeRelativePath(llvm::StringRef Destination, llvm::StringRef Origin)
Definition
File.cpp:37
clang
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Definition
ApplyReplacements.h:27
Generated on
for clang-tools by
1.14.0