Skip to content

[cmpcodesize] Add code headers #794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions utils/cmpcodesize/cmpcodesize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env python
# cmpcodesize.py - Compare sizes of built products -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors

from cmpcodesize.main import main

Expand Down
17 changes: 17 additions & 0 deletions utils/cmpcodesize/cmpcodesize/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# cmpcodesize/__init__.py - Compare sizes of built products -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
# ----------------------------------------------------------------------------
#
# This file needs to be here in order for Python to treat the
# utils/cmpcodesize/cmpcodesize directory as a module.
#
# ----------------------------------------------------------------------------

__author__ = 'Brian Gesiak'
__email__ = '[email protected]'
__versioninfo__ = (0, 1, 0)
Expand Down
10 changes: 10 additions & 0 deletions utils/cmpcodesize/cmpcodesize/compare.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# cmpcodesize/compare.py - Compare sizes of built products -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors

from __future__ import print_function

import re
Expand Down
9 changes: 9 additions & 0 deletions utils/cmpcodesize/cmpcodesize/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env python
# cmpcodesize/main.py - Command-line entry point for cmpcodesize -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors

from __future__ import print_function

Expand Down
10 changes: 10 additions & 0 deletions utils/cmpcodesize/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# cmpcodesize/setup.py - Install script for cmpcodesize -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors

import os
import setuptools

Expand Down
16 changes: 16 additions & 0 deletions utils/cmpcodesize/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# cmpcodesize/tests/__init__.py - Unit tests for cmpcodesize -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
# ----------------------------------------------------------------------------
#
# This file needs to be here in order for Python to treat the
# utils/cmpcodesize/tests/ directory as a module.
#
# ----------------------------------------------------------------------------
10 changes: 10 additions & 0 deletions utils/cmpcodesize/tests/test_list_function_sizes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# test_list_function_sizes.py - Unit tests for listFunctionSizes -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors

import unittest

from cmpcodesize.compare import listFunctionSizes
Expand Down