Class: AdLint::Exam::CBuiltin::W0440
- Inherits:
-
PassiveCodeCheck
- Object
- AdLint::Examination
- CodeCheck
- PassiveCodeCheck
- AdLint::Exam::CBuiltin::W0440
- Includes:
- CodingStyleAccessor
- Defined in:
- lib/adlint/exam/c_builtin/cc1_check.rb
Constant Summary
Constants included from CodingStyleAccessor
CodingStyleAccessor::INDENT_STYLE_ALLMAN, CodingStyleAccessor::INDENT_STYLE_GNU, CodingStyleAccessor::INDENT_STYLE_K_AND_R
Instance Method Summary collapse
-
#initialize(phase_ctxt) ⇒ W0440
constructor
A new instance of W0440.
Methods included from CodingStyleAccessor
#coding_style, #indent_style, #indent_width, #tab_width
Methods inherited from CodeCheck
message_id, message_name, #message_name, must_be_deferred?, must_be_unique?, required?
Methods inherited from AdLint::Examination
catalog, #execute, registrant_phase_class, required?
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
Constructor Details
#initialize(phase_ctxt) ⇒ W0440
Returns a new instance of W0440.
9293 9294 9295 9296 9297 |
# File 'lib/adlint/exam/c_builtin/cc1_check.rb', line 9293 def initialize(phase_ctxt) super trav = phase_ctxt[:cc1_ast_traversal] trav.enter_compound_statement += T(:check) end |