cpptagdb.cxx File Reference

#include <cxxtls/cpp_token_stream.h>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <cxxtls/file.h>
#include <algorithm>
#include <portable_strstream.h>
#include <portable_io.h>
#include <list>
#include <cxxtls/options.h>
#include <string.h>
#include <ctype.h>
Include dependency graph for cpptagdb.cxx:

Go to the source code of this file.

Classes

class  DefineHandler
 This class exists so as to define an override of the virtual operator method(). Its behavior is to include #defines into the output data. More...
struct  ScopeBinder
 A ScopeBinder object is created to save and restore the value of the variable, outer_scope. You save the old one at construction of the ScopeBinder object. On its destruction, the old value is restored. More...

Defines

#define ASSUMED_TOKEN(type)   if(token.type_ != type) { cerr << token << ", error: expected " << CPP_Token::type_name(type) << endl; cerr << __FILE__ << ":" << __LINE__ << endl; return true; }

Functions

static void eat_function_body ()
static void eat_function_parms (string *parmtext=0)
static void eat_template_parms ()
static void eat_type_name ()
bool eof ()
static void log_symbol (string type, string name, string file, int line, bool include_scope=true)
int main (int argc, char **argv, char **environ)
 log resumption of outer classes when inner classes are done?
static void next_token ()
static bool parse_class (bool handling_typedefs=false)
static bool parse_declaration (bool log_func_forward_decls=false)
static void parse_declarations (CPP_Buffer_Token_Source &s)
static bool parse_enum (bool handling_typedefs=false)
static bool parse_extern ()
static void parse_file (FileName const &)
static bool parse_funcvar (bool log_forward_funcs_defs=false, bool handling_typedefs=false)
static bool parse_namespace ()
static bool parse_typedef ()
static bool parse_using ()
static void parse_variables_defined (bool log_func_forward_decls=false, bool handling_typedefs=false)

Variables

static bool grep_style_output = false
 print processed file names to stderr?
static bool log_all_tokens_to_stderr = false
 do names of files come from stdin?
static bool log_filenames_to_stderr = false
 copy tokens to stderr?
static bool log_resumes = false
 use grep style format in logging info?
string outer_scope
static ostreambuf_iterator
< char > * 
output
static bool read_filenames_from_stdin = false
static CPP_Buffer_Token_Sourcestream
static CPP_Token token

Define Documentation

#define ASSUMED_TOKEN ( type   )     if(token.type_ != type) { cerr << token << ", error: expected " << CPP_Token::type_name(type) << endl; cerr << __FILE__ << ":" << __LINE__ << endl; return true; }

Definition at line 431 of file cpptagdb.cxx.


Function Documentation

static void eat_function_body (  )  [static]

Definition at line 1338 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static void eat_function_parms ( string *  parmtext = 0  )  [static]

Definition at line 1363 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static void eat_template_parms (  )  [static]

Definition at line 1396 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static void eat_type_name (  )  [static]

Definition at line 1129 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

bool eof (  ) 

Definition at line 396 of file cpptagdb.cxx.

Here is the caller graph for this function:

static void log_symbol ( string  type,
string  name,
string  file,
int  line,
bool  include_scope = true 
) [static]

Definition at line 572 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char **  argv,
char **  environ 
)

log resumption of outer classes when inner classes are done?

Definition at line 104 of file cpptagdb.cxx.

Here is the call graph for this function:

static void next_token (  )  [static]

Definition at line 353 of file cpptagdb.cxx.

Here is the caller graph for this function:

static bool parse_class ( bool  handling_typedefs = false  )  [static]

Definition at line 700 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static bool parse_declaration ( bool  log_func_forward_decls = false  )  [static]

Definition at line 450 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static void parse_declarations ( CPP_Buffer_Token_Source s  )  [static]

Definition at line 408 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static bool parse_enum ( bool  handling_typedefs = false  )  [static]

Definition at line 1196 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static bool parse_extern (  )  [static]

Definition at line 1829 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static void parse_file ( FileName const &  name  )  [static]

Definition at line 320 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static bool parse_funcvar ( bool  log_forward_funcs_defs = false,
bool  handling_typedefs = false 
) [static]

Definition at line 1437 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static bool parse_namespace (  )  [static]

Definition at line 1256 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static bool parse_typedef (  )  [static]

Definition at line 1178 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static bool parse_using (  )  [static]

Definition at line 1296 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static void parse_variables_defined ( bool  log_func_forward_decls = false,
bool  handling_typedefs = false 
) [static]

Definition at line 681 of file cpptagdb.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

bool grep_style_output = false [static]

print processed file names to stderr?

Definition at line 101 of file cpptagdb.cxx.

bool log_all_tokens_to_stderr = false [static]

do names of files come from stdin?

Definition at line 99 of file cpptagdb.cxx.

bool log_filenames_to_stderr = false [static]

copy tokens to stderr?

Definition at line 100 of file cpptagdb.cxx.

bool log_resumes = false [static]

use grep style format in logging info?

Definition at line 102 of file cpptagdb.cxx.

string outer_scope

Definition at line 406 of file cpptagdb.cxx.

ostreambuf_iterator<char>* output [static]

Definition at line 96 of file cpptagdb.cxx.

bool read_filenames_from_stdin = false [static]

Definition at line 98 of file cpptagdb.cxx.

Definition at line 351 of file cpptagdb.cxx.

CPP_Token token [static]

Definition at line 350 of file cpptagdb.cxx.

Generated on Wed Feb 29 22:51:22 2012 for CXXUtilities by  doxygen 1.6.3