struct FindNameOptions

Defined at line 93 of file ../../src/developer/debug/zxdb/expr/find_name.h

By default this will find the first exact match of any kind.

Public Members

HowMatch how
SearchMode search_mode
bool find_types
bool find_type_defs
bool find_functions
bool find_vars
bool find_templates
bool find_namespaces
size_t max_results
static const size_t kAllResults

Public Methods

void FindNameOptions (InitialKinds initial)

Defined at line 125 of file ../../src/developer/debug/zxdb/expr/find_name.h

Enumerations

enum HowMatch
Name Value
kPrefix 0
kExact 1

How to match the name.

Note that prefix matching doesn't currently work for templates. Prefix matching is currently

used for autocomplete where the full type name is desired, not just the base template name. And

supporting this requires uniquifying names (since many template types could be the same

underlying template) that's annoying to implement.

Defined at line 100 of file ../../src/developer/debug/zxdb/expr/find_name.h

enum SearchMode
Name Value
kLexical 0
kAllNamespaces 1

Defined at line 103 of file ../../src/developer/debug/zxdb/expr/find_name.h

enum InitialKinds
Name Value
kNoKinds false
kAllKinds true

This constructor's argument indicates whether the caller wants to default to finding all or no

types (presumably in the "no types" case, the caller will set one or more to true afterward).

Defined at line 124 of file ../../src/developer/debug/zxdb/expr/find_name.h