clang-tools 23.0.0git
IndexAction.h
Go to the documentation of this file.
1//===--- IndexAction.h - Run the indexer as a frontend action ----*- 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#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_INDEXACTION_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_INDEXACTION_H
12#include "clang/Frontend/FrontendAction.h"
13
14namespace clang {
15namespace clangd {
16
17struct IndexFileIn;
18
19// Creates an action that indexes translation units and delivers the results
20// for IndexContentsCallback (each call corresponds to one TU).
21//
22// Only a subset of SymbolCollector::Options are respected:
23// - include paths are always collected, and canonicalized appropriately
24// - references are always counted
25// - all references are collected (if RefsCallback is non-null)
26// - the symbol origin is set to Static if not specified by caller
27std::unique_ptr<FrontendAction> createStaticIndexingAction(
29 std::function<void(IndexFileIn)> IndexContentsCallback);
30
31} // namespace clangd
32} // namespace clang
33
34#endif
FIXME: Skip testing on windows temporarily due to the different escaping code mode.
Definition AST.cpp:44
std::unique_ptr< FrontendAction > createStaticIndexingAction(SymbolCollector::Options Opts, std::function< void(IndexFileIn)> IndexContentsCallback)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//