32 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9// This file exposes a method to create the FrontendActionFactory for the10// clang-doc tool. The factory runs the clang-doc mapper on a given set of11// source code files, storing the results key-value pairs in its12// ExecutionContext.13//14//===----------------------------------------------------------------------===//15 16#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H17#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H18 19#include "Representation.h"20#include "clang/Tooling/Tooling.h"21 22namespace clang {23namespace doc {24 25std::unique_ptr<tooling::FrontendActionFactory>26newMapperActionFactory(ClangDocContext CDCtx);27 28} // namespace doc29} // namespace clang30 31#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H32