Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CPPPreprocessor Class Reference

#include <cppPreprocessor.h>

Inheritance diagram for CPPPreprocessor:

CPPExpressionParser CPPParser CPPTypeParser List of all members.

Public Types

typedef map< string, CPPManifest * > Manifests
typedef set< CPPFileParsedFiles
typedef set< string > Includes

Public Member Functions

 CPPPreprocessor ()
void set_verbose (int verbose)
int get_verbose () const
void copy_filepos (const CPPPreprocessor &other)
CPPFile get_file () const
int get_line_number () const
int get_col_number () const
CPPToken get_next_token ()
void warning (const string &message, int line=0, int col=0, CPPFile file=CPPFile())
void error (const string &message, int line=0, int col=0, CPPFile file=CPPFile())
CPPCommentBlockget_comment_before (int line, CPPFile file)
int get_warning_count () const
int get_error_count () const

Public Attributes

Manifests _manifests
DSearchPath _include_path
DSearchPath _system_include_path
CPPComments _comments
ParsedFiles _parsed_files
Includes _quote_includes
Includes _angle_includes
bool _resolve_identifiers
int _verbose

Protected Member Functions

bool init_cpp (const CPPFile &file)
bool init_const_expr (const string &expr)
bool init_type (const string &type)
bool push_file (const CPPFile &file)
bool push_string (const string &input, bool lock_position)
string expand_manifests (const string &input_expr)
CPPExpressionparse_expr (const string &expr, CPPScope *current_scope, CPPScope *global_scope)

Private Types

typedef list< InputFileFiles
enum  State { S_normal, S_eof, S_nested, S_end_nested }

Private Member Functions

CPPToken internal_get_next_token ()
int skip_whitespace (int c)
int skip_comment (int c)
int skip_c_comment (int c)
int skip_cpp_comment (int c)
int process_directive (int c)
int get_preprocessor_command (int c, string &command)
int get_preprocessor_args (int c, string &args)
void handle_define_directive (const string &args, int first_line, int first_col, const CPPFile &first_file)
void handle_undef_directive (const string &args, int first_line, int first_col, const CPPFile &first_file)
void handle_ifdef_directive (const string &args, int first_line, int first_col, const CPPFile &first_file)
void handle_ifndef_directive (const string &args, int first_line, int first_col, const CPPFile &first_file)
void handle_if_directive (const string &args, int first_line, int first_col, const CPPFile &first_file)
void handle_include_directive (const string &args, int first_line, int first_col, const CPPFile &first_file)
void handle_error_directive (const string &args, int first_line, int first_col, const CPPFile &first_file)
void skip_false_if_block (bool consider_elifs)
CPPToken get_quoted_char (int c)
CPPToken get_quoted_string (int c)
CPPToken get_identifier (int c)
CPPToken expand_manifest (const CPPManifest *manifest)
void extract_manifest_args (const string &name, int num_args, vector_string &args)
void expand_defined_function (string &expr, size_t q, size_t &p)
void expand_manifest_inline (string &expr, size_t q, size_t &p, const CPPManifest *manifest)
void extract_manifest_args_inline (const string &name, int num_args, vector_string &args, const string &expr, size_t &p)
CPPToken get_number (int c, int c2=0)
string scan_quoted (int c)
bool should_ignore_manifest (const CPPManifest *manifest) const
bool should_ignore_preprocessor () const
int get ()
void unget (int c)
CPPTemplateParameterListnested_parse_template_instantiation (CPPTemplateScope *scope)
void skip_to_end_nested ()
void skip_to_angle_bracket ()

Static Private Member Functions

int check_keyword (const string &name)

Private Attributes

Files _files
State _state
int _paren_nesting
bool _angle_bracket_found
bool _start_of_line
int _unget
int _last_c
bool _last_cpp_comment
bool _save_comments
vector< CPPToken_saved_tokens
int _warning_count
int _error_count

Member Typedef Documentation

typedef list<InputFile> CPPPreprocessor::Files [private]
 

Definition at line 191 of file cppPreprocessor.h.

typedef set<string> CPPPreprocessor::Includes
 

Definition at line 86 of file cppPreprocessor.h.

typedef map<string, CPPManifest *> CPPPreprocessor::Manifests
 

Definition at line 75 of file cppPreprocessor.h.

typedef set<CPPFile> CPPPreprocessor::ParsedFiles
 

Definition at line 83 of file cppPreprocessor.h.


Member Enumeration Documentation

enum CPPPreprocessor::State [private]
 

Enumeration values:
S_normal 
S_eof 
S_nested 
S_end_nested 

Definition at line 194 of file cppPreprocessor.h.

Referenced by nested_parse_template_instantiation().


Constructor & Destructor Documentation

CPPPreprocessor::CPPPreprocessor  ) 
 

Definition at line 182 of file cppPreprocessor.cxx.

References _angle_bracket_found, _error_count, _last_c, _last_cpp_comment, _paren_nesting, _resolve_identifiers, _save_comments, _start_of_line, _state, _unget, _verbose, _warning_count, and S_eof.


Member Function Documentation

int CPPPreprocessor::check_keyword const string &  name  )  [static, private]
 

Definition at line 1876 of file cppPreprocessor.cxx.

References cpp_longlong_keyword.

Referenced by get_identifier().

void CPPPreprocessor::copy_filepos const CPPPreprocessor &  other  ) 
 

Definition at line 230 of file cppPreprocessor.cxx.

References _files, assert, get_col_number(), get_file(), and get_line_number().

Referenced by CPPExpressionParser::parse_expr(), and CPPTypeParser::parse_type().

void CPPPreprocessor::error const string &  message,
int  line = 0,
int  col = 0,
CPPFile  file = CPPFile()
 

Definition at line 473 of file cppPreprocessor.cxx.

References _error_count, _files, _state, _verbose, CPPFile::empty(), get_col_number(), get_file(), get_line_number(), indent(), S_end_nested, and S_nested.

Referenced by CPPIdentifier::get_scope(), and handle_error_directive().

void CPPPreprocessor::expand_defined_function string &  expr,
size_t  q,
size_t p
[private]
 

Definition at line 1666 of file cppPreprocessor.cxx.

References _manifests, extract_manifest_args_inline(), p, q, and vector_string.

Referenced by expand_manifests().

CPPToken CPPPreprocessor::expand_manifest const CPPManifest manifest  )  [private]
 

Definition at line 1567 of file cppPreprocessor.cxx.

References _files, CPPManifest::_has_parameters, CPPManifest::_name, CPPManifest::_num_parameters, CPPManifest::expand(), extract_manifest_args(), indent(), internal_get_next_token(), push_string(), and vector_string.

Referenced by get_identifier().

void CPPPreprocessor::expand_manifest_inline string &  expr,
size_t  q,
size_t p,
const CPPManifest manifest
[private]
 

Definition at line 1693 of file cppPreprocessor.cxx.

References CPPManifest::_has_parameters, CPPManifest::_name, CPPManifest::_num_parameters, CPPManifest::expand(), extract_manifest_args_inline(), p, q, and vector_string.

Referenced by expand_manifests().

string CPPPreprocessor::expand_manifests const string &  input_expr  )  [protected]
 

Definition at line 671 of file cppPreprocessor.cxx.

References _manifests, expand_defined_function(), expand_manifest_inline(), p, q, and size_t.

Referenced by handle_include_directive(), and parse_expr().

void CPPPreprocessor::extract_manifest_args const string &  name,
int  num_args,
vector_string args
[private]
 

Definition at line 1598 of file cppPreprocessor.cxx.

References _last_c, c, get(), get_col_number(), get_file(), get_line_number(), and warning().

Referenced by expand_manifest().

void CPPPreprocessor::extract_manifest_args_inline const string &  name,
int  num_args,
vector_string args,
const string &  expr,
size_t p
[private]
 

Definition at line 1712 of file cppPreprocessor.cxx.

References p, q, size_t, and warning().

Referenced by expand_defined_function(), and expand_manifest_inline().

int CPPPreprocessor::get  )  [private]
 

Definition at line 2064 of file cppPreprocessor.cxx.

References _files, _start_of_line, _unget, c, and indent().

Referenced by extract_manifest_args(), get_identifier(), get_number(), get_preprocessor_args(), get_preprocessor_command(), internal_get_next_token(), scan_quoted(), skip_c_comment(), skip_comment(), skip_cpp_comment(), skip_false_if_block(), and skip_whitespace().

int CPPPreprocessor::get_col_number  )  const
 

Definition at line 269 of file cppPreprocessor.cxx.

References _files.

Referenced by copy_filepos(), error(), extract_manifest_args(), get_identifier(), get_number(), get_quoted_char(), get_quoted_string(), internal_get_next_token(), nested_parse_template_instantiation(), process_directive(), push_string(), skip_c_comment(), skip_cpp_comment(), skip_false_if_block(), and warning().

CPPCommentBlock * CPPPreprocessor::get_comment_before int  line,
CPPFile  file
 

Definition at line 525 of file cppPreprocessor.cxx.

References _comments, CPPCommentBlock::_file, CPPCommentBlock::_last_line, and NULL.

Referenced by CPPScope::add_declaration().

int CPPPreprocessor::get_error_count  )  const
 

Definition at line 513 of file cppPreprocessor.cxx.

References _error_count.

Referenced by CPPExpressionParser::parse_expr(), CPPParser::parse_file(), and CPPTypeParser::parse_type().

CPPFile CPPPreprocessor::get_file  )  const
 

Definition at line 243 of file cppPreprocessor.cxx.

References _files.

Referenced by copy_filepos(), error(), extract_manifest_args(), get_identifier(), get_number(), get_quoted_char(), get_quoted_string(), internal_get_next_token(), nested_parse_template_instantiation(), process_directive(), push_string(), skip_c_comment(), skip_cpp_comment(), skip_false_if_block(), and warning().

CPPToken CPPPreprocessor::get_identifier int  c  )  [private]
 

Definition at line 1517 of file cppPreprocessor.cxx.

References _last_c, _manifests, c, check_keyword(), expand_manifest(), get(), get_col_number(), get_file(), get_line_number(), NULL, preprocessor_vis, should_ignore_manifest(), V_public, V_published, and YYSTYPE.

Referenced by internal_get_next_token().

int CPPPreprocessor::get_line_number  )  const
 

Definition at line 256 of file cppPreprocessor.cxx.

References _files.

Referenced by copy_filepos(), error(), extract_manifest_args(), get_identifier(), get_number(), get_quoted_char(), get_quoted_string(), internal_get_next_token(), nested_parse_template_instantiation(), process_directive(), push_string(), skip_c_comment(), skip_cpp_comment(), skip_false_if_block(), and warning().

CPPToken CPPPreprocessor::get_next_token  ) 
 

Definition at line 282 of file cppPreprocessor.cxx.

References _files, and indent().

Referenced by skip_to_angle_bracket(), and skip_to_end_nested().

CPPToken CPPPreprocessor::get_number int  c,
int  c2 = 0
[private]
 

Definition at line 1767 of file cppPreprocessor.cxx.

References _last_c, c, get(), get_col_number(), get_file(), get_line_number(), NULL, and YYSTYPE.

Referenced by internal_get_next_token().

int CPPPreprocessor::get_preprocessor_args int  c,
string &  args
[private]
 

Definition at line 1176 of file cppPreprocessor.cxx.

References c, get(), skip_comment(), and trim_blanks().

Referenced by process_directive(), and skip_false_if_block().

int CPPPreprocessor::get_preprocessor_command int  c,
string &  command
[private]
 

Definition at line 1150 of file cppPreprocessor.cxx.

References assert, c, and get().

Referenced by process_directive(), and skip_false_if_block().

CPPToken CPPPreprocessor::get_quoted_char int  c  )  [private]
 

Definition at line 1482 of file cppPreprocessor.cxx.

References c, get_col_number(), get_file(), get_line_number(), scan_quoted(), and YYSTYPE.

Referenced by internal_get_next_token().

CPPToken CPPPreprocessor::get_quoted_string int  c  )  [private]
 

Definition at line 1503 of file cppPreprocessor.cxx.

References c, get_col_number(), get_file(), get_line_number(), and scan_quoted().

Referenced by internal_get_next_token().

int CPPPreprocessor::get_verbose  )  const
 

Definition at line 220 of file cppPreprocessor.cxx.

References _verbose.

Referenced by main().

int CPPPreprocessor::get_warning_count  )  const
 

Definition at line 503 of file cppPreprocessor.cxx.

References _warning_count.

void CPPPreprocessor::handle_define_directive const string &  args,
int  first_line,
int  first_col,
const CPPFile first_file
[private]
 

Definition at line 1211 of file cppPreprocessor.cxx.

References CPPManifest::_expr, CPPManifest::_has_parameters, _manifests, CPPManifest::_name, CPPManifest::_vis, CPPManifest::expand(), global_scope, parse_expr(), preprocessor_vis, and warning().

Referenced by process_directive().

void CPPPreprocessor::handle_error_directive const string &  args,
int  first_line,
int  first_col,
const CPPFile first_file
[private]
 

Definition at line 1414 of file cppPreprocessor.cxx.

References error().

Referenced by process_directive().

void CPPPreprocessor::handle_if_directive const string &  args,
int  first_line,
int  first_col,
const CPPFile first_file
[private]
 

Definition at line 1289 of file cppPreprocessor.cxx.

References CPPExpression::Result::_type, CPPExpression::Result::as_integer(), CPPExpression::evaluate(), global_scope, NULL, parse_expr(), CPPExpression::RT_error, skip_false_if_block(), and warning().

Referenced by process_directive(), and skip_false_if_block().

void CPPPreprocessor::handle_ifdef_directive const string &  args,
int  first_line,
int  first_col,
const CPPFile first_file
[private]
 

Definition at line 1254 of file cppPreprocessor.cxx.

References _manifests, and skip_false_if_block().

Referenced by process_directive().

void CPPPreprocessor::handle_ifndef_directive const string &  args,
int  first_line,
int  first_col,
const CPPFile first_file
[private]
 

Definition at line 1271 of file cppPreprocessor.cxx.

References _manifests, and skip_false_if_block().

Referenced by process_directive().

void CPPPreprocessor::handle_include_directive const string &  args,
int  first_line,
int  first_col,
const CPPFile first_file
[private]
 

Definition at line 1323 of file cppPreprocessor.cxx.

References _angle_includes, _files, _include_path, _last_c, _quote_includes, _system_include_path, expand_manifests(), push_file(), CPPFile::S_alternate, CPPFile::S_local, CPPFile::S_none, CPPFile::S_system, Filename::set_text(), CPPFile::Source, and warning().

Referenced by process_directive().

void CPPPreprocessor::handle_undef_directive const string &  args,
int  first_line,
int  first_col,
const CPPFile first_file
[private]
 

Definition at line 1235 of file cppPreprocessor.cxx.

References _manifests, and warning().

Referenced by process_directive().

bool CPPPreprocessor::init_const_expr const string &  expr  )  [protected]
 

Definition at line 574 of file cppPreprocessor.cxx.

References _saved_tokens, _state, push_string(), and S_normal.

Referenced by CPPExpressionParser::parse_expr().

bool CPPPreprocessor::init_cpp const CPPFile file  )  [protected]
 

Definition at line 560 of file cppPreprocessor.cxx.

References _last_c, _saved_tokens, _state, push_file(), and S_normal.

Referenced by CPPParser::parse_file().

bool CPPPreprocessor::init_type const string &  type  )  [protected]
 

Definition at line 587 of file cppPreprocessor.cxx.

References _saved_tokens, _state, push_string(), S_normal, and type.

Referenced by CPPTypeParser::parse_type().

CPPToken CPPPreprocessor::internal_get_next_token  )  [private]
 

Definition at line 752 of file cppPreprocessor.cxx.

References _angle_bracket_found, _last_c, _paren_nesting, _start_of_line, _state, c, CPPToken::eof(), get(), get_col_number(), get_file(), get_identifier(), get_line_number(), get_number(), get_quoted_char(), get_quoted_string(), process_directive(), S_end_nested, S_eof, S_nested, should_ignore_preprocessor(), skip_whitespace(), and unget().

Referenced by expand_manifest(), and nested_parse_template_instantiation().

CPPTemplateParameterList * CPPPreprocessor::nested_parse_template_instantiation CPPTemplateScope scope  )  [private]
 

Definition at line 2123 of file cppPreprocessor.cxx.

References _angle_bracket_found, _files, CPPTemplateParameterList::_parameters, CPPTemplateScope::_parameters, _paren_nesting, _saved_tokens, _state, CPPToken::_token, CPPDeclaration::as_type(), assert, current_scope, get_col_number(), get_file(), get_line_number(), global_scope, indent(), internal_get_next_token(), CPPType::new_type(), NULL, parse_const_expr(), S_nested, skip_to_angle_bracket(), skip_to_end_nested(), State, CPPSimpleType::T_unknown, type, and warning().

CPPExpression * CPPPreprocessor::parse_expr const string &  expr,
CPPScope current_scope,
CPPScope global_scope
[protected]
 

Definition at line 733 of file cppPreprocessor.cxx.

References CPPExpressionParser::_expr, _verbose, current_scope, expand_manifests(), global_scope, NULL, and CPPExpressionParser::parse_expr().

Referenced by handle_define_directive(), handle_if_directive(), and CPPParser::parse_expr().

int CPPPreprocessor::process_directive int  c  )  [private]
 

Definition at line 1096 of file cppPreprocessor.cxx.

References _files, _start_of_line, c, get_col_number(), get_file(), get_line_number(), get_preprocessor_args(), get_preprocessor_command(), handle_define_directive(), handle_error_directive(), handle_if_directive(), handle_ifdef_directive(), handle_ifndef_directive(), handle_include_directive(), handle_undef_directive(), indent(), skip_false_if_block(), and warning().

Referenced by internal_get_next_token().

bool CPPPreprocessor::push_file const CPPFile file  )  [protected]
 

Definition at line 600 of file cppPreprocessor.cxx.

References _files, _last_c, _parsed_files, CPPPreprocessor::InputFile::_prev_last_c, _start_of_line, _verbose, indent(), and CPPPreprocessor::InputFile::open().

Referenced by handle_include_directive(), and init_cpp().

bool CPPPreprocessor::push_string const string &  input,
bool  lock_position
[protected]
 

Definition at line 629 of file cppPreprocessor.cxx.

References CPPPreprocessor::InputFile::_col_number, CPPPreprocessor::InputFile::_file, _files, _last_c, CPPPreprocessor::InputFile::_line_number, CPPPreprocessor::InputFile::_lock_position, CPPPreprocessor::InputFile::_prev_last_c, CPPPreprocessor::InputFile::connect_input(), get_col_number(), get_file(), get_line_number(), indent(), and input.

Referenced by expand_manifest(), init_const_expr(), and init_type().

string CPPPreprocessor::scan_quoted int  c  )  [private]
 

Definition at line 1943 of file cppPreprocessor.cxx.

References c, get(), hex_val(), unget(), and warning().

Referenced by get_quoted_char(), and get_quoted_string().

void CPPPreprocessor::set_verbose int  verbose  ) 
 

Definition at line 210 of file cppPreprocessor.cxx.

References _verbose, and verbose.

Referenced by main().

bool CPPPreprocessor::should_ignore_manifest const CPPManifest manifest  )  const [private]
 

Definition at line 2028 of file cppPreprocessor.cxx.

References _files.

Referenced by get_identifier().

bool CPPPreprocessor::should_ignore_preprocessor  )  const [private]
 

Definition at line 2047 of file cppPreprocessor.cxx.

References _files, and NULL.

Referenced by internal_get_next_token().

int CPPPreprocessor::skip_c_comment int  c  )  [private]
 

Definition at line 983 of file cppPreprocessor.cxx.

References CPPCommentBlock::_c_style, CPPCommentBlock::_col_number, CPPCommentBlock::_comment, _comments, CPPCommentBlock::_file, CPPCommentBlock::_last_line, CPPCommentBlock::_line_number, c, get(), get_col_number(), get_file(), get_line_number(), and warning().

Referenced by skip_comment().

int CPPPreprocessor::skip_comment int  c  )  [private]
 

Definition at line 957 of file cppPreprocessor.cxx.

References _last_cpp_comment, c, get(), skip_c_comment(), skip_cpp_comment(), and unget().

Referenced by get_preprocessor_args(), skip_false_if_block(), and skip_whitespace().

int CPPPreprocessor::skip_cpp_comment int  c  )  [private]
 

Definition at line 1044 of file cppPreprocessor.cxx.

References CPPCommentBlock::_c_style, CPPCommentBlock::_col_number, CPPCommentBlock::_comment, _comments, CPPCommentBlock::_file, _last_cpp_comment, CPPCommentBlock::_last_line, CPPCommentBlock::_line_number, assert, c, get(), get_col_number(), get_file(), and get_line_number().

Referenced by skip_comment().

void CPPPreprocessor::skip_false_if_block bool  consider_elifs  )  [private]
 

Definition at line 1428 of file cppPreprocessor.cxx.

References _save_comments, _start_of_line, c, get(), get_col_number(), get_file(), get_line_number(), get_preprocessor_args(), get_preprocessor_command(), handle_if_directive(), level, and skip_comment().

Referenced by handle_if_directive(), handle_ifdef_directive(), handle_ifndef_directive(), and process_directive().

void CPPPreprocessor::skip_to_angle_bracket  )  [private]
 

Definition at line 2236 of file cppPreprocessor.cxx.

References _angle_bracket_found, _files, _saved_tokens, _state, get_next_token(), indent(), S_end_nested, S_eof, and S_nested.

Referenced by nested_parse_template_instantiation().

void CPPPreprocessor::skip_to_end_nested  )  [private]
 

Definition at line 2206 of file cppPreprocessor.cxx.

References _files, _saved_tokens, _state, get_next_token(), indent(), S_end_nested, and S_eof.

Referenced by nested_parse_template_instantiation().

int CPPPreprocessor::skip_whitespace int  c  )  [private]
 

Definition at line 931 of file cppPreprocessor.cxx.

References c, get(), and skip_comment().

Referenced by internal_get_next_token().

void CPPPreprocessor::unget int  c  )  [private]
 

Definition at line 2107 of file cppPreprocessor.cxx.

References _unget, assert, and c.

Referenced by internal_get_next_token(), scan_quoted(), and skip_comment().

void CPPPreprocessor::warning const string &  message,
int  line = 0,
int  col = 0,
CPPFile  file = CPPFile()
 

Definition at line 449 of file cppPreprocessor.cxx.

References _files, _verbose, _warning_count, CPPFile::empty(), get_col_number(), get_file(), get_line_number(), and indent().

Referenced by CPPScope::add_using(), extract_manifest_args(), extract_manifest_args_inline(), handle_define_directive(), handle_if_directive(), handle_include_directive(), handle_undef_directive(), CPPStructType::instantiate(), CPPScope::instantiate(), CPPInstance::instantiate(), CPPDeclaration::instantiate(), nested_parse_template_instantiation(), process_directive(), scan_quoted(), and skip_c_comment().


Member Data Documentation

bool CPPPreprocessor::_angle_bracket_found [private]
 

Definition at line 199 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), internal_get_next_token(), nested_parse_template_instantiation(), and skip_to_angle_bracket().

Includes CPPPreprocessor::_angle_includes
 

Definition at line 88 of file cppPreprocessor.h.

Referenced by InterrogateBuilder::build(), and handle_include_directive().

CPPComments CPPPreprocessor::_comments
 

Definition at line 81 of file cppPreprocessor.h.

Referenced by get_comment_before(), skip_c_comment(), and skip_cpp_comment().

int CPPPreprocessor::_error_count [private]
 

Definition at line 211 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), error(), and get_error_count().

Files CPPPreprocessor::_files [private]
 

Definition at line 192 of file cppPreprocessor.h.

Referenced by copy_filepos(), error(), expand_manifest(), get(), get_col_number(), get_file(), get_line_number(), get_next_token(), handle_include_directive(), nested_parse_template_instantiation(), process_directive(), push_file(), push_string(), should_ignore_manifest(), should_ignore_preprocessor(), skip_to_angle_bracket(), skip_to_end_nested(), and warning().

DSearchPath CPPPreprocessor::_include_path
 

Definition at line 78 of file cppPreprocessor.h.

Referenced by handle_include_directive(), and main().

int CPPPreprocessor::_last_c [private]
 

Definition at line 204 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), extract_manifest_args(), get_identifier(), get_number(), handle_include_directive(), init_cpp(), internal_get_next_token(), push_file(), and push_string().

bool CPPPreprocessor::_last_cpp_comment [private]
 

Definition at line 205 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), skip_comment(), and skip_cpp_comment().

Manifests CPPPreprocessor::_manifests
 

Definition at line 76 of file cppPreprocessor.h.

Referenced by InterrogateBuilder::build(), expand_defined_function(), expand_manifests(), get_identifier(), handle_define_directive(), handle_ifdef_directive(), handle_ifndef_directive(), handle_undef_directive(), and predefine_macro().

int CPPPreprocessor::_paren_nesting [private]
 

Definition at line 198 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), internal_get_next_token(), and nested_parse_template_instantiation().

ParsedFiles CPPPreprocessor::_parsed_files
 

Definition at line 84 of file cppPreprocessor.h.

Referenced by push_file().

Includes CPPPreprocessor::_quote_includes
 

Definition at line 87 of file cppPreprocessor.h.

Referenced by InterrogateBuilder::build(), and handle_include_directive().

bool CPPPreprocessor::_resolve_identifiers
 

Definition at line 95 of file cppPreprocessor.h.

Referenced by CPPPreprocessor().

bool CPPPreprocessor::_save_comments [private]
 

Definition at line 206 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), and skip_false_if_block().

vector<CPPToken> CPPPreprocessor::_saved_tokens [private]
 

Definition at line 208 of file cppPreprocessor.h.

Referenced by init_const_expr(), init_cpp(), init_type(), nested_parse_template_instantiation(), skip_to_angle_bracket(), and skip_to_end_nested().

bool CPPPreprocessor::_start_of_line [private]
 

Definition at line 201 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), get(), internal_get_next_token(), process_directive(), push_file(), and skip_false_if_block().

State CPPPreprocessor::_state [private]
 

Definition at line 197 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), error(), init_const_expr(), init_cpp(), init_type(), internal_get_next_token(), nested_parse_template_instantiation(), skip_to_angle_bracket(), and skip_to_end_nested().

DSearchPath CPPPreprocessor::_system_include_path
 

Definition at line 79 of file cppPreprocessor.h.

Referenced by handle_include_directive(), and main().

int CPPPreprocessor::_unget [private]
 

Definition at line 202 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), get(), and unget().

int CPPPreprocessor::_verbose
 

Definition at line 101 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), error(), get_verbose(), parse_expr(), CPPParser::parse_type(), push_file(), set_verbose(), and warning().

int CPPPreprocessor::_warning_count [private]
 

Definition at line 210 of file cppPreprocessor.h.

Referenced by CPPPreprocessor(), get_warning_count(), and warning().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:34:51 2003 for DTool by doxygen1.3