10 #ifndef LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_SYMBOLINDEXMANAGER_H 11 #define LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_SYMBOLINDEXMANAGER_H 15 #include "llvm/ADT/StringRef.h" 20 #pragma warning(disable:4530) 30 namespace include_fixer {
37 #if LLVM_ENABLE_THREADS 38 auto Strategy = std::launch::async;
40 auto Strategy = std::launch::deferred;
42 SymbolIndices.push_back(std::async(Strategy, F));
55 std::vector<find_all_symbols::SymbolInfo>
56 search(llvm::StringRef Identifier,
bool IsNestedSearch =
true,
57 llvm::StringRef
FileName =
"")
const;
60 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.