[libc-commits] [libc] f2f410c - [libc][newhdrgen] Remove shebangs in files other than yaml_to_classes.py (#101816)

via libc-commits libc-commits at lists.llvm.org
Sat Aug 3 23:29:37 PDT 2024


Author: OverMighty
Date: 2024-08-03T23:29:34-07:00
New Revision: f2f410ca1317e7d2da89be0729a63a26ca83e7d7

URL: https://github.com/llvm/llvm-project/commit/f2f410ca1317e7d2da89be0729a63a26ca83e7d7
DIFF: https://github.com/llvm/llvm-project/commit/f2f410ca1317e7d2da89be0729a63a26ca83e7d7.diff

LOG: [libc][newhdrgen] Remove shebangs in files other than yaml_to_classes.py (#101816)

None of the Python files were committed with the executable bit set, and
only yaml_to_classes.py was intended to be executed.

Also sets the executable bit on yaml_to_classes.py and changes the
shebang to run python3 instead of python.

Added: 
    

Modified: 
    libc/newhdrgen/class_implementation/classes/enumeration.py
    libc/newhdrgen/class_implementation/classes/function.py
    libc/newhdrgen/class_implementation/classes/macro.py
    libc/newhdrgen/class_implementation/classes/object.py
    libc/newhdrgen/class_implementation/classes/type.py
    libc/newhdrgen/gpu_headers.py
    libc/newhdrgen/header.py
    libc/newhdrgen/yaml_to_classes.py

Removed: 
    


################################################################################
diff  --git a/libc/newhdrgen/class_implementation/classes/enumeration.py b/libc/newhdrgen/class_implementation/classes/enumeration.py
index a01fa74210101..b9848c04ee632 100644
--- a/libc/newhdrgen/class_implementation/classes/enumeration.py
+++ b/libc/newhdrgen/class_implementation/classes/enumeration.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # ====-- Enumeration class for libc function headers ----------*- python -*--==#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/libc/newhdrgen/class_implementation/classes/function.py b/libc/newhdrgen/class_implementation/classes/function.py
index 845ef1aebf54b..d97df7f8a50ec 100644
--- a/libc/newhdrgen/class_implementation/classes/function.py
+++ b/libc/newhdrgen/class_implementation/classes/function.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # ====-- Function class for libc function headers -------------*- python -*--==#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/libc/newhdrgen/class_implementation/classes/macro.py b/libc/newhdrgen/class_implementation/classes/macro.py
index bf17ae6b6c5ab..9a712f2a1c743 100644
--- a/libc/newhdrgen/class_implementation/classes/macro.py
+++ b/libc/newhdrgen/class_implementation/classes/macro.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # ====-- Macro class for libc function headers ----------------*- python -*--==#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/libc/newhdrgen/class_implementation/classes/object.py b/libc/newhdrgen/class_implementation/classes/object.py
index 02f30cba1c48c..f5214452f0349 100644
--- a/libc/newhdrgen/class_implementation/classes/object.py
+++ b/libc/newhdrgen/class_implementation/classes/object.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # ====-- Object class for libc function headers ---------------*- python -*--==#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/libc/newhdrgen/class_implementation/classes/type.py b/libc/newhdrgen/class_implementation/classes/type.py
index 8e4a8f3cc9c58..4ebf8034a4543 100644
--- a/libc/newhdrgen/class_implementation/classes/type.py
+++ b/libc/newhdrgen/class_implementation/classes/type.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # ====-- Type class for libc function headers -----------------*- python -*--==#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/libc/newhdrgen/gpu_headers.py b/libc/newhdrgen/gpu_headers.py
index d123e4af2de65..b26b3a88557b4 100644
--- a/libc/newhdrgen/gpu_headers.py
+++ b/libc/newhdrgen/gpu_headers.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # ===- GPU HeaderFile Class for --export-decls version --------*- python -*--==#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/libc/newhdrgen/header.py b/libc/newhdrgen/header.py
index 7ec2dee596f8c..df8ce613bd0f9 100644
--- a/libc/newhdrgen/header.py
+++ b/libc/newhdrgen/header.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # ====- HeaderFile Class for libc function headers  -----------*- python -*--==#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/libc/newhdrgen/yaml_to_classes.py b/libc/newhdrgen/yaml_to_classes.py
old mode 100644
new mode 100755
index a9d0e6424eb2c..37a4f78ec4a7b
--- a/libc/newhdrgen/yaml_to_classes.py
+++ b/libc/newhdrgen/yaml_to_classes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # ===- Generate headers for libc functions  -------------------*- python -*--==#
 #


        


More information about the libc-commits mailing list