Path: blob/main/contrib/llvm-project/lldb/source/Symbol/DeclVendor.cpp
39587 views
//===-- DeclVendor.cpp ----------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "lldb/Symbol/DeclVendor.h"9#include "lldb/Symbol/CompilerDecl.h"10#include "lldb/Symbol/TypeSystem.h"1112#include <vector>1314using namespace lldb;15using namespace lldb_private;1617std::vector<CompilerType> DeclVendor::FindTypes(ConstString name,18uint32_t max_matches) {19std::vector<CompilerType> ret;20std::vector<CompilerDecl> decls;21if (FindDecls(name, /*append*/ true, max_matches, decls))22for (auto decl : decls)23if (auto type =24decl.GetTypeSystem()->GetTypeForDecl(decl.GetOpaqueDecl()))25ret.push_back(type);26return ret;27}282930