.NAME Signal handling facilities

.DESCRIPTION
	The signal handling facilities of <csignal> shall not be 
used. 

.COMMENT V7.0

.SEVERITY Required

.COMMENT
Please refer to the MISRA C++:2008 document for further details (www.misra-cpp.com)

.COMMAND tcl

.CODE

::logiscope::include -once common utilities.tcl

proc compute {standardName tree} {
  variable CurrentParameterList
  # Check all ... nodes
  utilities::filterTree $tree [list [namespace current]::check]
}

proc check { node } {
  set curOperator [::logiscope::treeOperator $node]
  set curOperatorName [::logiscope::opName $curOperator]
  # Look for a function call
  if {[string equal $curOperatorName call]} {
    # Check if the included file is cstdio
	set operatorNode [::logiscope::treeDown $node 0]
	set operatorValue [::utilities::getName $operatorNode]
    if {[expr [lsearch [list signal raise] $operatorValue] != -1]} {
	  ::logiscope::addViolation $node
	  return 0
	}
  }
  return 1
}
