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) 29 namespace 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;
void addSymbolIndex(std::function< std::unique_ptr< SymbolIndex >()> F)
This class provides an interface for finding the header files corresponding to an identifier in the s...
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
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.