class AdLint::Exam::CBuiltin::FN_LINE
Public Class Methods
new(phase_ctxt)
click to toggle source
Calls superclass method
AdLint::Examination::new
# File lib/adlint/exam/c_builtin/cc1_metric.rb, line 227 def initialize(phase_ctxt) super @fpath = phase_ctxt[:sources].first.fpath trav = phase_ctxt[:cc1_ast_traversal] trav.enter_ansi_function_definition += T(:measure) trav.enter_kandr_function_definition += T(:measure) end
Private Instance Methods
do_execute(*)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_metric.rb, line 237 def do_execute(*) end
do_prepare(*)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_metric.rb, line 236 def do_prepare(*) end
measure(fun_def)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_metric.rb, line 239 def measure(fun_def) FN_LINE(FunctionId.new(fun_def.identifier.value, fun_def.signature.to_s), fun_def.location, fun_def.lines) end