#!/usr/bin/env python
#===- cindex-includes.py - cindex/Python Inclusion Graph -----*- python -*--===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===------------------------------------------------------------------------===#
"""
A simple command line tool for dumping a Graphviz description (dot) that
describes include dependencies.
"""
=
=
# FIXME: Add an output file option
=
=
=
# A helper function for generating the node name.
return + +
# Generate the include graph
= ;
# Always write the input file as a node just in case it doesn't
# actually include anything. This would generate a 1 node graph.
+=
+= %
+= ;