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 Comments
kLexical 0

A lexical search is a normal search starting from the current scope and searching outward
from there. This is the normal search that programmers expect when typing names in a
language.

kAllNamespaces 1

An "all namespaces" search ignores the current scope and recursively searches all namespaces
for matches for a given name. This can be the desired behavior for things like finding
functions for breakpoints, but this search will never find local or class variables.

Fully qualified identifiers ("::Foo") will not get implicit namespace searching, even when
requested. They will only match the toplevel.

This mode is only valid for full index searches via FindName() and FindIndexedName().
The local searching variants like FindLocalVariable() and FindMember() do not support it.

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

enum InitialKinds : _Bool
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