summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/include-fixer/YamlSymbolIndex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/include-fixer/YamlSymbolIndex.cpp')
-rw-r--r--clang-tools-extra/include-fixer/YamlSymbolIndex.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/clang-tools-extra/include-fixer/YamlSymbolIndex.cpp b/clang-tools-extra/include-fixer/YamlSymbolIndex.cpp
index 82517afaf87..f3f2d5a8955 100644
--- a/clang-tools-extra/include-fixer/YamlSymbolIndex.cpp
+++ b/clang-tools-extra/include-fixer/YamlSymbolIndex.cpp
@@ -17,6 +17,7 @@
#include <vector>
using clang::find_all_symbols::SymbolInfo;
+using clang::find_all_symbols::SymbolAndSignals;
namespace clang {
namespace include_fixer {
@@ -27,9 +28,8 @@ YamlSymbolIndex::createFromFile(llvm::StringRef FilePath) {
if (!Buffer)
return Buffer.getError();
- return std::unique_ptr<YamlSymbolIndex>(
- new YamlSymbolIndex(clang::find_all_symbols::ReadSymbolInfosFromYAML(
- Buffer.get()->getBuffer())));
+ return std::unique_ptr<YamlSymbolIndex>(new YamlSymbolIndex(
+ find_all_symbols::ReadSymbolInfosFromYAML(Buffer.get()->getBuffer())));
}
llvm::ErrorOr<std::unique_ptr<YamlSymbolIndex>>
@@ -47,10 +47,11 @@ YamlSymbolIndex::createFromDirectory(llvm::StringRef Directory,
return llvm::make_error_code(llvm::errc::no_such_file_or_directory);
}
-std::vector<SymbolInfo> YamlSymbolIndex::search(llvm::StringRef Identifier) {
- std::vector<SymbolInfo> Results;
+std::vector<SymbolAndSignals>
+YamlSymbolIndex::search(llvm::StringRef Identifier) {
+ std::vector<SymbolAndSignals> Results;
for (const auto &Symbol : Symbols) {
- if (Symbol.getName() == Identifier)
+ if (Symbol.Symbol.getName() == Identifier)
Results.push_back(Symbol);
}
return Results;
OpenPOWER on IntegriCloud