Class: AdLint::Cpp::Preprocessor

Inherits:
Object
  • Object
show all
Extended by:
Pluggable, Forwardable
Includes:
LogUtil, ReportUtil
Defined in:
lib/adlint/cpp/eval.rb

Overview

DESCRIPTION

C preprocessor language evaluator.

Preprocessor executes recursive descent parsing and evaluation at a time.

Instance Method Summary collapse

Methods included from Pluggable

def_plugin

Methods included from LogUtil

#log_debug, #log_error, #log_fatal, #log_info, #log_warn

Methods included from ReportUtil

#create_context_message, #write_FL_FUNC, #write_FL_STMT, #write_FN_CALL, #write_FN_CSUB, #write_FN_CYCM, #write_FN_GOTO, #write_FN_LINE, #write_FN_NEST, #write_FN_PARA, #write_FN_PATH, #write_FN_RETN, #write_FN_STMT, #write_FN_UELS, #write_FN_UNRC, #write_FN_UNUV, #write_assignment, #write_error_message, #write_funcall, #write_fundcl, #write_fundef, #write_gvardcl, #write_include, #write_initialization, #write_labeldef, #write_literal, #write_macrodef, #write_pp_directive, #write_typedcl, #write_vardef, #write_warning_message, #write_xref_function, #write_xref_variable

Instance Method Details

#execute(pp_ctxt, src) ⇒ Object



53
54
55
56
57
# File 'lib/adlint/cpp/eval.rb', line 53

def execute(pp_ctxt, src)
  @pp_ctxt = pp_ctxt
  @pp_ctxt.push_lexer(create_lexer(@pp_ctxt, src))
  preprocessing_file(@pp_ctxt)
end