9#ifndef LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_SYMBOLINDEXMANAGER_H
10#define LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_SYMBOLINDEXMANAGER_H
14#include "llvm/ADT/StringRef.h"
19#pragma warning(disable:4530)
29namespace include_fixer {
36#if LLVM_ENABLE_THREADS
37 auto Strategy = std::launch::async;
39 auto Strategy = std::launch::deferred;
41 SymbolIndices.push_back(std::async(Strategy, F));
54 std::vector<find_all_symbols::SymbolInfo>
55 search(llvm::StringRef Identifier,
bool IsNestedSearch =
true,
56 llvm::StringRef
FileName =
"")
const;
59 std::vector<std::shared_future<std::unique_ptr<SymbolIndex>>> SymbolIndices;
This class provides an interface for finding the header files corresponding to an identifier in the s...
void addSymbolIndex(std::function< std::unique_ptr< SymbolIndex >()> F)
std::vector< find_all_symbols::SymbolInfo > search(llvm::StringRef Identifier, bool IsNestedSearch=true, llvm::StringRef FileName="") const
Search for header files to be included for an identifier.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//