Skip to content

Commit 52dc491

Browse files
committed
[libc++][NFC] Use consistent layout for license in Python files
Most Python files were using `# === [...]` instead of `#=== [...]` so I went with what was the most common in the codebase.
1 parent 63da545 commit 52dc491

24 files changed

+48
-48
lines changed

libcxx/test/libcxx/clang_modules_include.gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
# Test that we can include each header in a TU while using modules.
1010
# This is important notably because the LLDB data formatters use

libcxx/test/libcxx/clang_tidy.gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
# Run our custom libc++ clang-tidy checks on all public headers.
1010

libcxx/test/libcxx/double_include.gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
# Test that we can include each header in two TU's and link them together.
1010

libcxx/test/libcxx/header_inclusions.gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
# Test that all headers include all the other headers they're supposed to, as
1010
# prescribed by the Standard.

libcxx/test/libcxx/libcpp_version.gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
# Test that all headers define the _LIBCPP_VERSION macro.
1010

libcxx/test/libcxx/no_assert_include.gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
# Ensure that none of the standard C++ headers implicitly include cassert or
1010
# assert.h (because assert() is implemented as a macro).

libcxx/test/libcxx/system_reserved_names.gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
# Test that headers are not tripped up by the surrounding code defining various
1010
# alphabetic macros. Also ensure that we don't swallow the definition of user

libcxx/test/libcxx/transitive_includes.gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
# Test that we don't remove transitive includes of public C++ headers in the library accidentally.
1010
# When we remove a transitive public include, clients tend to break because they don't always

libcxx/utils/adb_run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env python3
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
"""adb_run.py is a utility for running a libc++ test program via adb.
1111
"""

libcxx/utils/ci/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88
#
99
# This file defines the buildkite and github actions builder images.
1010
# You can build both images using:

libcxx/utils/ci/apple-install-libcxx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
set -e
1111

libcxx/utils/ci/build-picolibc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
#
1111
# This script builds picolibc (https://github.com/picolibc/picolibc) from

libcxx/utils/ci/buildkite-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
#
1010
# This file describes the various pre-commit CI bots used to test libc++.

libcxx/utils/ci/run-buildbot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
set -ex
1111
set -o pipefail

libcxx/utils/ci/vendor/android/Dockerfile.emulator

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
FROM ubuntu:jammy
1010

libcxx/utils/ci/vendor/android/build-emulator-images.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
set -e
1111

libcxx/utils/ci/vendor/android/container-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
set -e
1111

libcxx/utils/ci/vendor/android/emulator-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
# This script is the entrypoint of an Android Emulator Docker container.
1111

libcxx/utils/ci/vendor/android/emulator-functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
# Bash functions for managing the names of emulator system images.
1010

libcxx/utils/ci/vendor/android/emulator-wait-for-ready.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
set -ex
1111

libcxx/utils/ci/vendor/android/setup-env-for-emulator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
export ADB_SERVER_SOCKET="tcp:$(docker inspect \
1010
-f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \

libcxx/utils/ci/vendor/android/start-emulator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
# Starts a new Docker container using a Docker image containing the Android
1111
# Emulator and an OS image. Stops and removes the old container if it exists

libcxx/utils/ci/vendor/android/stop-emulator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
#===----------------------------------------------------------------------===##
2+
# ===----------------------------------------------------------------------===##
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
# See https://llvm.org/LICENSE.txt for license information.
66
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
#
8-
#===----------------------------------------------------------------------===##
8+
# ===----------------------------------------------------------------------===##
99

1010
set -e
1111

libcxx/utils/libcxx/test/android.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#===----------------------------------------------------------------------===##
1+
# ===----------------------------------------------------------------------===##
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#
7-
#===----------------------------------------------------------------------===##
7+
# ===----------------------------------------------------------------------===##
88

99
import re
1010
import select

0 commit comments

Comments
 (0)