The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

C::sparse

C::sparse - Perl binding to Linux's Sparse

SYNOPSIS

  use C::sparse;
  my $s = C::sparse::sparse("test.c", "-E");
  my @f = $s->streams # get all streams, 0: <cmdline>, 1:<builtin, 2:test.c
  my @s = $f[2]->e->s # get pre  pre-processor tokenstream of test.c (source)
  my @d = $f[2]->e->d # get post pre-processor tokenstream of test.c (dest)

DESCRIPTION

Binding to the Linux static analyser Sparse.

EXPORT

None by default.

SEE ALSO

This version of sparse is based on repository https://github.com/eiselekd/sparse-decpp.git, a fork from sparse:5449cfbfe55eea2a602a40122c122b5040d67243. For the original sparse refer to https://sparse.wiki.kernel.org/index.php/Main_Page.

AUTHOR

Konrad Eisele, <eiselekd a t gmail.com<gt>

COPYRIGHT AND LICENSE

Copyright (C) 2013 by Konrad Eisele

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.3 or, at your option, any later version of Perl 5 you may have available. Companies affiliated to the military complex are not allowed to use this binding and fork.