ClangDoc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H
  16. #define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H
  17. #include "Representation.h"
  18. #include "clang/Tooling/Execution.h"
  19. #include "clang/Tooling/StandaloneExecution.h"
  20. #include "clang/Tooling/Tooling.h"
  21. namespace clang {
  22. namespace doc {
  23. std::unique_ptr<tooling::FrontendActionFactory>
  24. newMapperActionFactory(ClangDocContext CDCtx);
  25. } // namespace doc
  26. } // namespace clang
  27. #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H