Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Perl bindings to the Clang compiler's indexing interface
Perl XS C++ C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
inc
lib Cursor: add method to get cursor's number of arguments
t t: move C and C++ test fragments under t/fragments
xs
.travis.yml Revert "travis: test with perl 5.22"
Changes v0.09
Clang.xs Diagnostic.xs: initial support for diagnostics
MANIFEST.SKIP MANIFEST: add MANIFEST.SKIP
README.pod add README
TODO TODO: ++
dist.ini dist.ini: fix repo name
typemap Diagnostic.xs: initial support for diagnostics

README.pod

NAME

Clang - Perl bindings to the Clang compiler's indexing interface

SYNOPSIS

    use Clang;

    my $index = Clang::Index -> new(1);

    my $tunit = $index -> parse('file.c');
    my $nodes = $tunit -> cursor -> children;

    foreach my $node (@$nodes) {
        say $node -> spelling;
        say $node -> kind -> spelling;
    }

DESCRIPTION

Clang is a compiler front end for the C, C++, Objective-C, and Objective-C++ programming languages which uses LLVM as its back end.

This module provides Perl bindings to the Clang indexing interface, used for extracting high-level symbol information from source files without exposing the full Clang C++ API.

AUTHOR

Alessandro Ghedini <alexbio@cpan.org>

LICENSE AND COPYRIGHT

Copyright 2012 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

Something went wrong with that request. Please try again.