ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
advanced_preprocessing_hooks Class Reference

#include <advanced_preprocessing_hooks.h>

Inheritance diagram for advanced_preprocessing_hooks:
Collaboration diagram for advanced_preprocessing_hooks:

Public Member Functions

 advanced_preprocessing_hooks ()
 
template<typename ContextT , typename TokenT , typename ContainerT , typename IteratorT >
bool expanding_function_like_macro (ContextT const &ctx, TokenT const &macrodef, std::vector< TokenT > const &formal_args, ContainerT const &definition, TokenT const &macrocall, std::vector< ContainerT > const &arguments, IteratorT const &seqstart, IteratorT const &seqend)
 
template<typename ContextT , typename TokenT , typename ContainerT >
bool expanding_object_like_macro (ContextT const &ctx, TokenT const &macro, ContainerT const &definition, TokenT const &macrocall)
 
template<typename ContextT , typename ContainerT >
void expanded_macro (ContextT const &ctx, ContainerT const &result)
 
template<typename ContextT , typename ContainerT >
void rescanned_macro (ContextT const &ctx, ContainerT const &result)
 
template<typename ContextT >
bool found_include_directive (ContextT const &ctx, std::string const &filename, bool include_next)
 
template<typename ContextT >
void opened_include_file (ContextT const &ctx, std::string const &relname, std::string const &absname, bool is_system_include)
 
template<typename ContextT >
void returning_from_include_file (ContextT const &ctx)
 
template<typename ContextT , typename ContainerT >
bool interpret_pragma (ContextT const &ctx, ContainerT &pending, typename ContextT::token_type const &option, ContainerT const &values, typename ContextT::token_type const &act_token)
 
template<typename ContextT , typename TokenT , typename ParametersT , typename DefinitionT >
void defined_macro (ContextT const &ctx, TokenT const &macro_name, bool is_functionlike, ParametersT const &parameters, DefinitionT const &definition, bool is_predefined)
 
template<typename ContextT , typename TokenT >
bool found_directive (ContextT const &ctx, TokenT const &directive)
 
template<typename ContextT , typename TokenT >
TokenT const & generated_token (ContextT const &ctx, TokenT const &token)
 
template<typename ContextT , typename TokenT , typename ContainerT >
bool evaluated_conditional_expression (ContextT const &ctx, TokenT const &directive, ContainerT const &expression, bool expression_value)
 
template<typename ContextT , typename TokenT >
void skipped_token (ContextT const &ctx, TokenT const &token)
 
template<typename ContextT , typename TokenT >
void undefined_macro (ContextT const &ctx, TokenT const &macro_name)
 
template<typename ContextT , typename ContainerT >
bool found_warning_directive (ContextT const &ctx, ContainerT const &message)
 
template<typename ContextT , typename ContainerT >
void found_line_directive (ContextT const &ctx, ContainerT const &arguments, unsigned int line, std::string const &filename)
 
template<typename ContextT , typename TokenT >
bool may_skip_whitespace (ContextT const &ctx, TokenT &token, bool &skipped_newline)
 
template<typename ContextT , typename ExceptionT >
void throw_exception (ContextT const &ctx, ExceptionT const &e)
 
template<typename ContextT >
void detected_include_guard (ContextT const &ctx, std::string const &filename, std::string const &include_guard)
 
template<typename ContextT , typename TokenT >
void detected_pragma_once (ContextT const &ctx, TokenT const &pragma_token, std::string const &filename)
 
template<typename ContextT , typename ContainerT >
bool found_error_directive (ContextT const &ctx, ContainerT const &message)
 

Public Attributes

AttributeListMapattributeListMap
 
std::list< token_typetokens
 
token_type lastPreprocDirective
 
int numberOfIfs
 
std::string includeDirective
 
token_type includeDirectiveToken
 
bool skipping
 
bool updatingLastToken
 
token_type last_token
 

Detailed Description

Definition at line 62 of file advanced_preprocessing_hooks.h.

Constructor & Destructor Documentation

advanced_preprocessing_hooks::advanced_preprocessing_hooks ( )
inline

Definition at line 78 of file advanced_preprocessing_hooks.h.

Member Function Documentation

template<typename ContextT , typename TokenT , typename ContainerT , typename IteratorT >
bool advanced_preprocessing_hooks::expanding_function_like_macro ( ContextT const &  ctx,
TokenT const &  macrodef,
std::vector< TokenT > const &  formal_args,
ContainerT const &  definition,
TokenT const &  macrocall,
std::vector< ContainerT > const &  arguments,
IteratorT const &  seqstart,
IteratorT const &  seqend 
)
inline
template<typename ContextT , typename TokenT , typename ContainerT >
bool advanced_preprocessing_hooks::expanding_object_like_macro ( ContextT const &  ctx,
TokenT const &  macro,
ContainerT const &  definition,
TokenT const &  macrocall 
)
inline
template<typename ContextT , typename ContainerT >
void advanced_preprocessing_hooks::expanded_macro ( ContextT const &  ctx,
ContainerT const &  result 
)
inline
template<typename ContextT , typename ContainerT >
void advanced_preprocessing_hooks::rescanned_macro ( ContextT const &  ctx,
ContainerT const &  result 
)
inline
template<typename ContextT >
bool advanced_preprocessing_hooks::found_include_directive ( ContextT const &  ctx,
std::string const &  filename,
bool  include_next 
)
inline

Definition at line 213 of file advanced_preprocessing_hooks.h.

References SgProject::get_verbose(), and includeDirective.

template<typename ContextT >
void advanced_preprocessing_hooks::opened_include_file ( ContextT const &  ctx,
std::string const &  relname,
std::string const &  absname,
bool  is_system_include 
)
inline
template<typename ContextT >
void advanced_preprocessing_hooks::returning_from_include_file ( ContextT const &  ctx)
inline

Definition at line 261 of file advanced_preprocessing_hooks.h.

template<typename ContextT , typename ContainerT >
bool advanced_preprocessing_hooks::interpret_pragma ( ContextT const &  ctx,
ContainerT &  pending,
typename ContextT::token_type const &  option,
ContainerT const &  values,
typename ContextT::token_type const &  act_token 
)
inline

Definition at line 292 of file advanced_preprocessing_hooks.h.

template<typename ContextT , typename TokenT , typename ParametersT , typename DefinitionT >
void advanced_preprocessing_hooks::defined_macro ( ContextT const &  ctx,
TokenT const &  macro_name,
bool  is_functionlike,
ParametersT const &  parameters,
DefinitionT const &  definition,
bool  is_predefined 
)
inline
template<typename ContextT , typename TokenT >
bool advanced_preprocessing_hooks::found_directive ( ContextT const &  ctx,
TokenT const &  directive 
)
inline
template<typename ContextT , typename TokenT >
TokenT const& advanced_preprocessing_hooks::generated_token ( ContextT const &  ctx,
TokenT const &  token 
)
inline

Definition at line 487 of file advanced_preprocessing_hooks.h.

References SgProject::get_verbose().

template<typename ContextT , typename TokenT , typename ContainerT >
bool advanced_preprocessing_hooks::evaluated_conditional_expression ( ContextT const &  ctx,
TokenT const &  directive,
ContainerT const &  expression,
bool  expression_value 
)
inline
template<typename ContextT , typename TokenT >
void advanced_preprocessing_hooks::skipped_token ( ContextT const &  ctx,
TokenT const &  token 
)
inline
template<typename ContextT , typename TokenT >
void advanced_preprocessing_hooks::undefined_macro ( ContextT const &  ctx,
TokenT const &  macro_name 
)
inline
template<typename ContextT , typename ContainerT >
bool advanced_preprocessing_hooks::found_warning_directive ( ContextT const &  ctx,
ContainerT const &  message 
)
inline
template<typename ContextT , typename ContainerT >
void advanced_preprocessing_hooks::found_line_directive ( ContextT const &  ctx,
ContainerT const &  arguments,
unsigned int  line,
std::string const &  filename 
)
inline
template<typename ContextT , typename TokenT >
bool advanced_preprocessing_hooks::may_skip_whitespace ( ContextT const &  ctx,
TokenT &  token,
bool &  skipped_newline 
)
inline
template<typename ContextT , typename ExceptionT >
void advanced_preprocessing_hooks::throw_exception ( ContextT const &  ctx,
ExceptionT const &  e 
)
inline

Definition at line 848 of file advanced_preprocessing_hooks.h.

References SgProject::get_verbose().

template<typename ContextT >
void advanced_preprocessing_hooks::detected_include_guard ( ContextT const &  ctx,
std::string const &  filename,
std::string const &  include_guard 
)
inline

Definition at line 855 of file advanced_preprocessing_hooks.h.

References SgProject::get_verbose().

template<typename ContextT , typename TokenT >
void advanced_preprocessing_hooks::detected_pragma_once ( ContextT const &  ctx,
TokenT const &  pragma_token,
std::string const &  filename 
)
inline

Definition at line 862 of file advanced_preprocessing_hooks.h.

References SgProject::get_verbose().

template<typename ContextT , typename ContainerT >
bool advanced_preprocessing_hooks::found_error_directive ( ContextT const &  ctx,
ContainerT const &  message 
)
inline

Definition at line 869 of file advanced_preprocessing_hooks.h.

References SgProject::get_verbose().

Member Data Documentation

int advanced_preprocessing_hooks::numberOfIfs

Definition at line 71 of file advanced_preprocessing_hooks.h.

std::string advanced_preprocessing_hooks::includeDirective

Definition at line 73 of file advanced_preprocessing_hooks.h.

Referenced by found_include_directive(), and opened_include_file().

token_type advanced_preprocessing_hooks::includeDirectiveToken

Definition at line 74 of file advanced_preprocessing_hooks.h.

Referenced by opened_include_file().

bool advanced_preprocessing_hooks::skipping
bool advanced_preprocessing_hooks::updatingLastToken
token_type advanced_preprocessing_hooks::last_token

The documentation for this class was generated from the following file: