Skip to content

Instantly share code, notes, and snippets.

@kulp
Created May 28, 2009 15:34
Show Gist options
  • Save kulp/119386 to your computer and use it in GitHub Desktop.
Save kulp/119386 to your computer and use it in GitHub Desktop.
Show C functions sorted by decreasing cyclomatic complexity.
function cyc()
{
mcstrip $1 | cyclo -c -n 0 | perl -le 'print for map "@$_", sort { $b->[1] <=> $a->[1] } map [ split ], <>' | column -t
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment