summaryrefslogtreecommitdiff
path: root/buildscripts/libdeps/gacli.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/libdeps/gacli.py')
-rwxr-xr-xbuildscripts/libdeps/gacli.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/buildscripts/libdeps/gacli.py b/buildscripts/libdeps/gacli.py
index 6b0bafb467b..9b71e1544fe 100755
--- a/buildscripts/libdeps/gacli.py
+++ b/buildscripts/libdeps/gacli.py
@@ -103,7 +103,6 @@ class CustomFormatter(argparse.RawTextHelpFormatter, argparse.ArgumentDefaultsHe
{help_text[CountTypes.PUB_EDGE.name]}count edges that are public
{help_text[CountTypes.PRIV_EDGE.name]}count edges that are private
{help_text[CountTypes.IF_EDGE.name]}count edges that are interface
- {help_text[CountTypes.SHIM.name]}count shim nodes
{help_text[CountTypes.LIB.name]}count library nodes
{help_text[CountTypes.PROG.name]}count program nodes
""")
@@ -159,6 +158,11 @@ def setup_args_parser():
"[from_node] [to_node]: Print edges between two nodes, which if removed would break the dependency between those "
+ "nodes,.")
+ parser.add_argument(
+ '--indegree-one', action='store_true', default=False, help=
+ "Find candidate nodes for merging by searching the graph for nodes with only one node which depends on them."
+ )
+
args = parser.parse_args()
for arg_list in args.graph_paths:
@@ -212,6 +216,9 @@ def main():
analysis.append(
libdeps_analyzer.CriticalEdges(libdeps_graph, analyzer_args[0], analyzer_args[1]))
+ if args.indegree_one:
+ analysis.append(libdeps_analyzer.InDegreeOne(libdeps_graph))
+
analysis += libdeps_analyzer.linter_factory(libdeps_graph, args.lint)
if args.build_data: