diff options
author | Maciej Domanski <maciej.domanski@trailofbits.com> | 2022-12-27 16:54:36 +0100 |
---|---|---|
committer | Maciej Domanski <maciej.domanski@trailofbits.com> | 2022-12-27 16:54:36 +0100 |
commit | b189640a927e9ed17347b26f6579b0e41dcdda38 (patch) | |
tree | b9e090e9e2024559db5991bdb7f103d39300281c /.custom-format.py | |
parent | 3d031f93a6366ee157cfd9a27fbb6d485d328d8e (diff) | |
download | afl++-b189640a927e9ed17347b26f6579b0e41dcdda38.tar.gz |
cleanup
Diffstat (limited to '.custom-format.py')
-rwxr-xr-x | .custom-format.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/.custom-format.py b/.custom-format.py index 428d7b0d..00f6280f 100755 --- a/.custom-format.py +++ b/.custom-format.py @@ -26,15 +26,16 @@ import shutil with open(".clang-format") as f: fmt = f.read() -CURRENT_LLVM = os.getenv('LLVM_VERSION', 14) -CLANG_FORMAT_BIN = os.getenv("CLANG_FORMAT_BIN", "") +#CURRENT_LLVM = os.getenv('LLVM_VERSION', 14) +#CLANG_FORMAT_BIN = os.getenv("CLANG_FORMAT_BIN", "") -if shutil.which(CLANG_FORMAT_BIN) is None: - CLANG_FORMAT_BIN = f"clang-format-{CURRENT_LLVM}" +#if shutil.which(CLANG_FORMAT_BIN) is None: +# CLANG_FORMAT_BIN = f"clang-format-{CURRENT_LLVM}" -if shutil.which(CLANG_FORMAT_BIN) is None: - print(f"[!] clang-format-{CURRENT_LLVM} is needed. Aborted.") - exit(1) +#if shutil.which(CLANG_FORMAT_BIN) is None: +# print(f"[!] clang-format-{CURRENT_LLVM} is needed. Aborted.") +# exit(1) +CLANG_FORMAT_BIN = "clang-format" COLUMN_LIMIT = 80 for line in fmt.split("\n"): |