//===-- InMemorySymbolIndex.h -----------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // #ifndef LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INMEMORYSYMBOLINDEX_H #define LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INMEMORYSYMBOLINDEX_H #include "SymbolIndex.h" #include #include #include namespace clang { namespace include_fixer { /// Xref database with fixed content. class InMemorySymbolIndex : public SymbolIndex { public: InMemorySymbolIndex(const std::vector &Symbols); std::vector search(llvm::StringRef Identifier) override; private: std::map> LookupTable; }; } // namespace include_fixer } // namespace clang #endif // LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INMEMORYSYMBOLINDEX_H