Skip to content

Commit 209bc41

Browse files
committed
[viewcfg] Add Python code header
Add code headers missing from utils/viewcfg, as per the template from #762.
1 parent 1f165b4 commit 209bc41

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

utils/viewcfg

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
#!/usr/bin/env python
2-
3-
# A script for viewing the CFG of SIL and llvm IR.
4-
5-
# For vim users: use the following lines in .vimrc
2+
# viewcfg - A script for viewing the CFG of SIL and LLVM IR -*- python -*-
3+
#
4+
# This source file is part of the Swift.org open source project
5+
#
6+
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
7+
# Licensed under Apache License v2.0 with Runtime Library Exception
8+
#
9+
# See http://swift.org/LICENSE.txt for license information
10+
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11+
#
12+
# ----------------------------------------------------------------------------
13+
#
14+
# For vim users: use the following lines in .vimrc...
615
#
716
# com! -nargs=? Funccfg silent ?{$?,/^}/w !viewcfg <args>
817
# com! -range -nargs=? Viewcfg silent <line1>,<line2>w !viewcfg <args>
918
#
10-
# to add these commands:
19+
# ...to add these commands:
1120
#
12-
# :Funccfg displays the CFG of the current SIL/llvm function.
21+
# :Funccfg displays the CFG of the current SIL/LLVM function.
1322
# :<range>Viewcfg displays the sub-CFG of the selected range.
1423
#
1524
# Note: viewcfg should be in the $PATH and .dot files should be associated
1625
# with the Graphviz app.
26+
#
27+
# ----------------------------------------------------------------------------
1728

1829
from __future__ import print_function
1930

0 commit comments

Comments
 (0)