diff --git a/utils/line-directive b/utils/line-directive index 0f62f85fe7176..7f147f815063d 100755 --- a/utils/line-directive +++ b/utils/line-directive @@ -1,5 +1,21 @@ #!/usr/bin/env python -#convert line numbers in error messages according to "line directive" comments +# line-directive.py - Transform line numbers in error messages -*- 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 +# +# ---------------------------------------------------------------------------- +# +# Converts line numbers in error messages according to "line directive" +# comments. +# +# ---------------------------------------------------------------------------- + import sys import re import bisect diff --git a/validation-test/Python/line-directive.swift b/validation-test/Python/line-directive.swift new file mode 100644 index 0000000000000..9f2cc8cfa5374 --- /dev/null +++ b/validation-test/Python/line-directive.swift @@ -0,0 +1 @@ +// RUN: %{python} %S/../../utils/line-directive