From b2668633387b4813c6f64c141e7798bbffcf8566 Mon Sep 17 00:00:00 2001 From: OverMighty Date: Sat, 3 Aug 2024 13:19:52 +0200 Subject: [PATCH 1/3] [libc][newhdrgen] Remove shebangs from Python files None of the Python files were committed with the executable bit set, and it seems that only yaml_to_classes.py is intended to be executed. --- libc/newhdrgen/class_implementation/classes/enumeration.py | 2 -- libc/newhdrgen/class_implementation/classes/function.py | 2 -- libc/newhdrgen/class_implementation/classes/macro.py | 2 -- libc/newhdrgen/class_implementation/classes/object.py | 2 -- libc/newhdrgen/class_implementation/classes/type.py | 2 -- libc/newhdrgen/gpu_headers.py | 2 -- libc/newhdrgen/header.py | 2 -- libc/newhdrgen/yaml_to_classes.py | 2 -- 8 files changed, 16 deletions(-) diff --git a/libc/newhdrgen/class_implementation/classes/enumeration.py b/libc/newhdrgen/class_implementation/classes/enumeration.py index a01fa742101014c..b9848c04ee63215 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 845ef1aebf54b87..d97df7f8a50ec5f 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 bf17ae6b6c5ab82..9a712f2a1c743b3 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 02f30cba1c48ca8..f5214452f034992 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 8e4a8f3cc9c58f5..4ebf8034a454318 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 d123e4af2de6563..b26b3a88557b4a4 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 7ec2dee596f8c65..df8ce613bd0f995 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 index a9d0e6424eb2c6f..2a0d2ffac482e88 100644 --- a/libc/newhdrgen/yaml_to_classes.py +++ b/libc/newhdrgen/yaml_to_classes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python -# # ===- Generate headers for libc functions -------------------*- python -*--==# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. From 3e9cdc6c4b609715bed5681792ab70f004fdcf0e Mon Sep 17 00:00:00 2001 From: OverMighty Date: Sat, 3 Aug 2024 20:21:25 +0200 Subject: [PATCH 2/3] Restore yaml_to_classes.py and set executable bit on it --- libc/newhdrgen/yaml_to_classes.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 libc/newhdrgen/yaml_to_classes.py diff --git a/libc/newhdrgen/yaml_to_classes.py b/libc/newhdrgen/yaml_to_classes.py old mode 100644 new mode 100755 index 2a0d2ffac482e88..a9d0e6424eb2c6f --- a/libc/newhdrgen/yaml_to_classes.py +++ b/libc/newhdrgen/yaml_to_classes.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python +# # ===- Generate headers for libc functions -------------------*- python -*--==# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. From a793d1a68ba2f242528fce5e253a07b9f872a982 Mon Sep 17 00:00:00 2001 From: OverMighty Date: Sat, 3 Aug 2024 20:22:48 +0200 Subject: [PATCH 3/3] Change shebang to use python3 --- libc/newhdrgen/yaml_to_classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/newhdrgen/yaml_to_classes.py b/libc/newhdrgen/yaml_to_classes.py index a9d0e6424eb2c6f..37a4f78ec4a7b67 100755 --- 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 -*--==# #