We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6219c80 commit b7ee03fCopy full SHA for b7ee03f
clang-tools-extra/clang-include-fixer/InMemorySymbolIndex.cpp
@@ -21,7 +21,7 @@ InMemorySymbolIndex::InMemorySymbolIndex(
21
22
std::vector<SymbolAndSignals>
23
InMemorySymbolIndex::search(llvm::StringRef Identifier) {
24
- auto I = LookupTable.find(std::string(Identifier));
+ auto I = LookupTable.find(Identifier);
25
if (I != LookupTable.end())
26
return I->second;
27
return {};
clang-tools-extra/clang-include-fixer/InMemorySymbolIndex.h
@@ -27,7 +27,8 @@ class InMemorySymbolIndex : public SymbolIndex {
search(llvm::StringRef Identifier) override;
28
29
private:
30
- std::map<std::string, std::vector<find_all_symbols::SymbolAndSignals>>
+ std::map<std::string, std::vector<find_all_symbols::SymbolAndSignals>,
31
+ std::less<>>
32
LookupTable;
33
};
34
0 commit comments