xref: /llvm-project/clang-tools-extra/clang-doc/ClangDoc.h (revision d96f92ff16edab72cf78811673f02371f07a5a70)
1e975a473SJulie Hockett //===-- ClangDoc.h - ClangDoc -----------------------------------*- C++ -*-===//
2e975a473SJulie Hockett //
32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6e975a473SJulie Hockett //
7e975a473SJulie Hockett //===----------------------------------------------------------------------===//
8e975a473SJulie Hockett //
9*d96f92ffSZhuo Zhang // This file exposes a method to create the FrontendActionFactory for the
10e975a473SJulie Hockett // clang-doc tool. The factory runs the clang-doc mapper on a given set of
11e975a473SJulie Hockett // source code files, storing the results key-value pairs in its
12e975a473SJulie Hockett // ExecutionContext.
13e975a473SJulie Hockett //
14e975a473SJulie Hockett //===----------------------------------------------------------------------===//
15e975a473SJulie Hockett 
16e975a473SJulie Hockett #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H
17e975a473SJulie Hockett #define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H
18e975a473SJulie Hockett 
19eb50a2e8SJulie Hockett #include "Representation.h"
20e975a473SJulie Hockett #include "clang/Tooling/Execution.h"
21e975a473SJulie Hockett #include "clang/Tooling/StandaloneExecution.h"
22e975a473SJulie Hockett #include "clang/Tooling/Tooling.h"
23e975a473SJulie Hockett 
24e975a473SJulie Hockett namespace clang {
25e975a473SJulie Hockett namespace doc {
26e975a473SJulie Hockett 
27e975a473SJulie Hockett std::unique_ptr<tooling::FrontendActionFactory>
28eb50a2e8SJulie Hockett newMapperActionFactory(ClangDocContext CDCtx);
29e975a473SJulie Hockett 
30e975a473SJulie Hockett } // namespace doc
31e975a473SJulie Hockett } // namespace clang
32e975a473SJulie Hockett 
33e975a473SJulie Hockett #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H
34