1 //===-- InMemorySymbolIndex.h -----------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INMEMORYSYMBOLINDEX_H
10 #define LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INMEMORYSYMBOLINDEX_H
12 #include "SymbolIndex.h"
18 namespace include_fixer
{
20 /// Xref database with fixed content.
21 class InMemorySymbolIndex
: public SymbolIndex
{
24 const std::vector
<find_all_symbols::SymbolAndSignals
> &Symbols
);
26 std::vector
<find_all_symbols::SymbolAndSignals
>
27 search(llvm::StringRef Identifier
) override
;
30 std::map
<std::string
, std::vector
<find_all_symbols::SymbolAndSignals
>,
35 } // namespace include_fixer
38 #endif // LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INMEMORYSYMBOLINDEX_H