subscribeTo(CxxGrammarImpl.functionDefinition);
}
@Override
public void leaveNode(AstNode node) {
SourceFunction sourceFunction = (SourceFunction) getContext().peekSourceCode();
int complexity = ChecksHelper.getRecursiveMeasureInt(sourceFunction, CxxMetric.COMPLEXITY);
if (complexity > max) {
getContext().createLineViolation(this,
"The Cyclomatic Complexity of this function is {0,number,integer} which is greater than {1,number,integer} authorized.",
node,