GDB (xrefs)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
info_sources_filter Struct Reference

#include "symtab.h"

Public Types

enum class  match_on { FULLNAME , DIRNAME , BASENAME }
 

Public Member Functions

 info_sources_filter (match_on match_type, const char *regexp)
 
 DISABLE_COPY_AND_ASSIGN (info_sources_filter)
 
bool matches (const char *fullname) const
 

Private Attributes

match_on m_match_type
 
const char * m_regexp
 
gdb::optional< compiled_regex > m_c_regexp
 

Detailed Description

Definition at line 2871 of file symtab.h.

Member Enumeration Documentation

◆ match_on

enum class info_sources_filter::match_on
strong
Enumerator
FULLNAME 
DIRNAME 
BASENAME 

Definition at line 2875 of file symtab.h.

Constructor & Destructor Documentation

◆ info_sources_filter()

info_sources_filter::info_sources_filter ( match_on match_type,
const char * regexp )

Definition at line 4223 of file symtab.c.

References m_c_regexp, and m_regexp.

Member Function Documentation

◆ DISABLE_COPY_AND_ASSIGN()

info_sources_filter::DISABLE_COPY_AND_ASSIGN ( info_sources_filter )

◆ matches()

bool info_sources_filter::matches ( const char * fullname) const

Definition at line 4244 of file symtab.c.

References BASENAME, DIRNAME, FULLNAME, ldirname(), m_c_regexp, and m_match_type.

Referenced by output_source_filename_data::output().

Member Data Documentation

◆ m_c_regexp

gdb::optional<compiled_regex> info_sources_filter::m_c_regexp
private

Definition at line 2913 of file symtab.h.

Referenced by info_sources_filter(), and matches().

◆ m_match_type

match_on info_sources_filter::m_match_type
private

Definition at line 2906 of file symtab.h.

Referenced by matches().

◆ m_regexp

const char* info_sources_filter::m_regexp
private

Definition at line 2909 of file symtab.h.

Referenced by info_sources_filter().


The documentation for this struct was generated from the following files: