| 1 |
//===-- ClangDoc.h - ClangDoc -----------------------------------*- 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 |
//===----------------------------------------------------------------------===// |
| 8 |
// |
| 9 |
// This file exposes a method to create the FrontendActionFactory for the |
| 10 |
// clang-doc tool. The factory runs the clang-doc mapper on a given set of |
| 11 |
// source code files, storing the results key-value pairs in its |
| 12 |
// ExecutionContext. |
| 13 |
// |
| 14 |
//===----------------------------------------------------------------------===// |
| 15 |
|
| 16 |
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H |
| 17 |
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H |
| 18 |
|
| 19 |
#include "Representation.h" |
| 20 |
#include "clang/Tooling/Execution.h" |
| 21 |
#include "clang/Tooling/StandaloneExecution.h" |
| 22 |
#include "clang/Tooling/Tooling.h" |
| 23 |
|
| 24 |
namespace clang { |
| 25 |
namespace doc { |
| 26 |
|
| 27 |
std::unique_ptr<tooling::FrontendActionFactory> |
| 28 |
newMapperActionFactory(ClangDocContext CDCtx); |
| 29 |
|
| 30 |
} // namespace doc |
| 31 |
} // namespace clang |
| 32 |
|
| 33 |
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H |