|
12 | 12 | #include "lldb/Core/Address.h" |
13 | 13 | #include "lldb/Core/ModuleSpec.h" |
14 | 14 | #include "lldb/Core/UserSettingsController.h" |
| 15 | +#include "lldb/Symbol/ImportedDeclaration.h" |
15 | 16 | #include "lldb/Utility/FileSpec.h" |
16 | 17 | #include "lldb/Utility/Iterable.h" |
17 | 18 | #include "lldb/Utility/Status.h" |
@@ -397,6 +398,25 @@ class ModuleList { |
397 | 398 | void FindTypes(Module *search_first, const TypeQuery &query, |
398 | 399 | lldb_private::TypeResults &results) const; |
399 | 400 |
|
| 401 | + /// Finds imported declarations whose name match \p name. |
| 402 | + /// |
| 403 | + /// \param[in] search_first |
| 404 | + /// If non-null, this module will be searched before any other |
| 405 | + /// modules. |
| 406 | + /// |
| 407 | + /// \param[in] name |
| 408 | + /// The name to search the imported declaration by. |
| 409 | + /// |
| 410 | + /// \param[in] results |
| 411 | + /// Any matching types will be populated into the \a results object. |
| 412 | + /// |
| 413 | + /// \param[in] find_one |
| 414 | + /// If set to true, the search will stop after the first imported |
| 415 | + /// declaration is found. |
| 416 | + void FindImportedDeclarations(Module *search_first, ConstString name, |
| 417 | + std::vector<ImportedDeclaration> &results, |
| 418 | + bool find_one) const; |
| 419 | + |
400 | 420 | bool FindSourceFile(const FileSpec &orig_spec, FileSpec &new_spec) const; |
401 | 421 |
|
402 | 422 | /// Find addresses by file/line |
|
0 commit comments