From 9882f5361389c200e998c9b1e51b1bed743ae939 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Mon, 20 Jan 2025 17:17:55 +0100 Subject: [PATCH] Scripts: Add inl files to reformat.sh --- .clang-format-ignore | 5 ++++- .git-blame-ignore-revs | 3 +++ Scripts/reformat.sh | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.clang-format-ignore b/.clang-format-ignore index ecc5f4b973..218bbde33d 100644 --- a/.clang-format-ignore +++ b/.clang-format-ignore @@ -3,10 +3,13 @@ # Ignore all files in the External directory External/* -# SoftFloat-3e code doesn't belong to us +# SoftFloat-3e code doesn't belong to us FEXCore/Source/Common/SoftFloat-3e/* Source/Common/cpp-optparse/* # Files with human-indented tables for readability - don't mess with these FEXCore/Source/Interface/Core/X86Tables/* +# Inline headers with list-like content that can't be processed individually +Source/Tools/LinuxEmulation/LinuxSyscalls/x*/SyscallsNames.inl +Source/Tools/LinuxEmulation/LinuxSyscalls/x*/Ioctl/*.inl diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index a289338cd3..1a4404a4dc 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -13,3 +13,6 @@ # Second reformat to find fixed point PR#3577 905aa935f5ce344a48ef4d5edab3c31efa8d793e + +# Reformat of CodeEmitter inl files +8760c593ece92d7e9fa94c40da0368fd367c9cad diff --git a/Scripts/reformat.sh b/Scripts/reformat.sh index cde5bcd9e0..5e3e846d9e 100755 --- a/Scripts/reformat.sh +++ b/Scripts/reformat.sh @@ -10,5 +10,5 @@ fi # Reformat whole tree. # This is run by the reformat target. -git ls-files -z '*.cpp' '*.h' | xargs -0 -n 1 -P $(nproc) python3 Scripts/clang-format.py -i +git ls-files -z '*.cpp' '*.h' '*.inl' | xargs -0 -n 1 -P $(nproc) python3 Scripts/clang-format.py -i cd $DIR