ROSE
0.9.6a
|
#include <advanced_preprocessing_hooks.h>
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 ¯odef, std::vector< TokenT > const &formal_args, ContainerT const &definition, TokenT const ¯ocall, 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 ¯o, ContainerT const &definition, TokenT const ¯ocall) |
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 ¯o_name, bool is_functionlike, ParametersT const ¶meters, 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 ¯o_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 | |
AttributeListMap * | attributeListMap |
std::list< token_type > | tokens |
token_type | lastPreprocDirective |
int | numberOfIfs |
std::string | includeDirective |
token_type | includeDirectiveToken |
bool | skipping |
bool | updatingLastToken |
token_type | last_token |
Definition at line 62 of file advanced_preprocessing_hooks.h.
|
inline |
Definition at line 78 of file advanced_preprocessing_hooks.h.
|
inline |
Definition at line 121 of file advanced_preprocessing_hooks.h.
References attributeListMap, and AttributeListMap::expanding_function_like_macro().
|
inline |
Definition at line 156 of file advanced_preprocessing_hooks.h.
References attributeListMap, and AttributeListMap::expanding_object_like_macro().
|
inline |
Definition at line 173 of file advanced_preprocessing_hooks.h.
References attributeListMap, and AttributeListMap::expanded_macro().
|
inline |
Definition at line 188 of file advanced_preprocessing_hooks.h.
References attributeListMap, and AttributeListMap::rescanned_macro().
|
inline |
Definition at line 213 of file advanced_preprocessing_hooks.h.
References SgProject::get_verbose(), and includeDirective.
|
inline |
Definition at line 241 of file advanced_preprocessing_hooks.h.
References attributeListMap, AttributeListMap::found_include_directive(), SgProject::get_verbose(), includeDirective, and includeDirectiveToken.
|
inline |
Definition at line 261 of file advanced_preprocessing_hooks.h.
|
inline |
Definition at line 292 of file advanced_preprocessing_hooks.h.
|
inline |
Definition at line 323 of file advanced_preprocessing_hooks.h.
References attributeListMap, AttributeListMap::defined_macro(), ROSE_WAVE_PSEUDO_FILE, and tokens.
|
inline |
Definition at line 409 of file advanced_preprocessing_hooks.h.
References attributeListMap, AttributeListMap::flush_token_stream(), AttributeListMap::found_directive(), SgProject::get_verbose(), last_token, lastPreprocDirective, skipping, tokens, and updatingLastToken.
|
inline |
Definition at line 487 of file advanced_preprocessing_hooks.h.
References SgProject::get_verbose().
|
inline |
Definition at line 538 of file advanced_preprocessing_hooks.h.
References attributeListMap, SgProject::get_verbose(), last_token, lastPreprocDirective, ROSE_WAVE_PSEUDO_FILE, tokens, AttributeListMap::update_token(), and updatingLastToken.
|
inline |
Definition at line 611 of file advanced_preprocessing_hooks.h.
References attributeListMap, SgProject::get_verbose(), last_token, lastPreprocDirective, AttributeListMap::skipped_token(), skipping, tokens, AttributeListMap::update_token(), and updatingLastToken.
|
inline |
Definition at line 711 of file advanced_preprocessing_hooks.h.
References attributeListMap, AttributeListMap::found_directive(), lastPreprocDirective, ROSE_WAVE_PSEUDO_FILE, and tokens.
|
inline |
Definition at line 747 of file advanced_preprocessing_hooks.h.
References attributeListMap, AttributeListMap::found_directive(), SgProject::get_verbose(), and lastPreprocDirective.
|
inline |
Definition at line 779 of file advanced_preprocessing_hooks.h.
References attributeListMap, AttributeListMap::found_directive(), SgProject::get_verbose(), lastPreprocDirective, ROSE_WAVE_PSEUDO_FILE, tokens, and AttributeListMap::update_token().
|
inline |
Definition at line 812 of file advanced_preprocessing_hooks.h.
References attributeListMap, AttributeListMap::flush_token_stream(), SgProject::get_verbose(), last_token, lastPreprocDirective, AttributeListMap::may_skip_whitespace(), skipping, and tokens.
|
inline |
Definition at line 848 of file advanced_preprocessing_hooks.h.
References SgProject::get_verbose().
|
inline |
Definition at line 855 of file advanced_preprocessing_hooks.h.
References SgProject::get_verbose().
|
inline |
Definition at line 862 of file advanced_preprocessing_hooks.h.
References SgProject::get_verbose().
|
inline |
Definition at line 869 of file advanced_preprocessing_hooks.h.
References SgProject::get_verbose().
AttributeListMap* advanced_preprocessing_hooks::attributeListMap |
Definition at line 67 of file advanced_preprocessing_hooks.h.
Referenced by defined_macro(), evaluated_conditional_expression(), expanded_macro(), expanding_function_like_macro(), expanding_object_like_macro(), found_directive(), found_line_directive(), found_warning_directive(), may_skip_whitespace(), opened_include_file(), rescanned_macro(), skipped_token(), and undefined_macro().
std::list< token_type > advanced_preprocessing_hooks::tokens |
Definition at line 68 of file advanced_preprocessing_hooks.h.
Referenced by defined_macro(), evaluated_conditional_expression(), found_directive(), found_line_directive(), may_skip_whitespace(), skipped_token(), and undefined_macro().
token_type advanced_preprocessing_hooks::lastPreprocDirective |
Definition at line 70 of file advanced_preprocessing_hooks.h.
Referenced by evaluated_conditional_expression(), found_directive(), found_line_directive(), found_warning_directive(), may_skip_whitespace(), skipped_token(), and undefined_macro().
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 |
Definition at line 75 of file advanced_preprocessing_hooks.h.
Referenced by found_directive(), may_skip_whitespace(), and skipped_token().
bool advanced_preprocessing_hooks::updatingLastToken |
Definition at line 76 of file advanced_preprocessing_hooks.h.
Referenced by evaluated_conditional_expression(), found_directive(), and skipped_token().
token_type advanced_preprocessing_hooks::last_token |
Definition at line 77 of file advanced_preprocessing_hooks.h.
Referenced by evaluated_conditional_expression(), found_directive(), may_skip_whitespace(), and skipped_token().