clang.cindex.Config.set_library_file(path)

def get_ts(source_path):
    index = clang.cindex.Index.create()
return index.parse(source_path)

def print_node(node):
    if node.kind == clang.cindex.CursorKind.INTEGER_LITERAL:
        print(node.type.kind, node.get_tokens().next().spelling)
map(print_node, node.get_children())
ts = get_ts('test.cpp')
map(print_node, ts.cursor.get_children())
How to retrieve function call argument values using libclang