From 91e839eb11b7cce6936a22962ec6002c27a3e292 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:33:38 +0000 Subject: [PATCH 1/2] test: rc.29 PR fixture --- -top.cpp | 1 + cap/many.cpp | 1 + incdemo/use2.cpp | 2 ++ src/fixits.cpp | 8 ++++++++ src/{demo.cpp => moved_demo.cpp} | 0 src/no_final_newline.cpp | 5 +++++ stress/latin1.cpp | 1 + stress/with space.cpp | 1 + 8 files changed, 19 insertions(+) create mode 100644 -top.cpp create mode 100644 incdemo/use2.cpp create mode 100644 src/fixits.cpp rename src/{demo.cpp => moved_demo.cpp} (100%) create mode 100644 src/no_final_newline.cpp diff --git a/-top.cpp b/-top.cpp new file mode 100644 index 0000000..2a061db --- /dev/null +++ b/-top.cpp @@ -0,0 +1 @@ +int top_dash( ){return 1;} diff --git a/cap/many.cpp b/cap/many.cpp index 31e1e37..00d9a86 100644 --- a/cap/many.cpp +++ b/cap/many.cpp @@ -33,3 +33,4 @@ int many(int x) { total += 14; return total; } + // touched diff --git a/incdemo/use2.cpp b/incdemo/use2.cpp new file mode 100644 index 0000000..db0333f --- /dev/null +++ b/incdemo/use2.cpp @@ -0,0 +1,2 @@ +#include "missing_lib.h" +int use_two(){return lib_value();} diff --git a/src/fixits.cpp b/src/fixits.cpp new file mode 100644 index 0000000..36fe117 --- /dev/null +++ b/src/fixits.cpp @@ -0,0 +1,8 @@ +int fixits(int x, int *p) { + if (p == 0) + return 0; + if (x > 1) + return 1; + else + return 2; +} diff --git a/src/demo.cpp b/src/moved_demo.cpp similarity index 100% rename from src/demo.cpp rename to src/moved_demo.cpp diff --git a/src/no_final_newline.cpp b/src/no_final_newline.cpp new file mode 100644 index 0000000..56c4959 --- /dev/null +++ b/src/no_final_newline.cpp @@ -0,0 +1,5 @@ +#include +int added(){ + int x=1; + printf("%d",x); + return x;} \ No newline at end of file diff --git a/stress/latin1.cpp b/stress/latin1.cpp index b0a6c97..243c144 100644 --- a/stress/latin1.cpp +++ b/stress/latin1.cpp @@ -4,3 +4,4 @@ int f( int x ){ int y=x*2; return y ;} int main(){ char* p = NULL; printf("%d\n",f(3)); return 0;} +int edited_latin1( ){return 3;} diff --git a/stress/with space.cpp b/stress/with space.cpp index d8e5ccf..ed13fca 100644 --- a/stress/with space.cpp +++ b/stress/with space.cpp @@ -3,3 +3,4 @@ int f( int x ){ int y=x*2; return y ;} int main(){ char* p = NULL; printf("%d\n",f(3)); return 0;} +int edited_space( ){return 1;} From ec094305eb3ccb4824f61bf673eaf1c2bcca2f0e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:36:37 +0000 Subject: [PATCH 2/2] style: apply clang-format and clang-tidy fixes --- -top.cpp | 2 +- cap/many.cpp | 2 +- incdemo/use2.cpp | 2 +- src/fixits.cpp | 18 +++++++++++------- src/no_final_newline.cpp | 10 ++++++---- stress/latin1.cpp | 2 +- stress/with space.cpp | 2 +- 7 files changed, 22 insertions(+), 16 deletions(-) diff --git a/-top.cpp b/-top.cpp index 2a061db..badfc6f 100644 --- a/-top.cpp +++ b/-top.cpp @@ -1 +1 @@ -int top_dash( ){return 1;} +static int top_dash() { return 1; } diff --git a/cap/many.cpp b/cap/many.cpp index 00d9a86..3f88898 100644 --- a/cap/many.cpp +++ b/cap/many.cpp @@ -33,4 +33,4 @@ int many(int x) { total += 14; return total; } - // touched +// touched diff --git a/incdemo/use2.cpp b/incdemo/use2.cpp index db0333f..c1b8a86 100644 --- a/incdemo/use2.cpp +++ b/incdemo/use2.cpp @@ -1,2 +1,2 @@ #include "missing_lib.h" -int use_two(){return lib_value();} +static int use_two() { return lib_value(); } diff --git a/src/fixits.cpp b/src/fixits.cpp index 36fe117..cc26d77 100644 --- a/src/fixits.cpp +++ b/src/fixits.cpp @@ -1,8 +1,12 @@ -int fixits(int x, int *p) { - if (p == 0) - return 0; - if (x > 1) - return 1; - else - return 2; +static int fixits(int x, const int const* p) +{ + if (p == 0) { + return 0; + } + if (x > 1) { + return 1; + } + { + return 2; + } } diff --git a/src/no_final_newline.cpp b/src/no_final_newline.cpp index 56c4959..71aeae0 100644 --- a/src/no_final_newline.cpp +++ b/src/no_final_newline.cpp @@ -1,5 +1,7 @@ #include -int added(){ - int x=1; - printf("%d",x); - return x;} \ No newline at end of file +static int added() +{ + int const x = 1; + printf("%d", x); + return x; +} \ No newline at end of file diff --git a/stress/latin1.cpp b/stress/latin1.cpp index 243c144..605eb49 100644 --- a/stress/latin1.cpp +++ b/stress/latin1.cpp @@ -4,4 +4,4 @@ int f( int x ){ int y=x*2; return y ;} int main(){ char* p = NULL; printf("%d\n",f(3)); return 0;} -int edited_latin1( ){return 3;} +static int edited_latin1() { return 3; } diff --git a/stress/with space.cpp b/stress/with space.cpp index ed13fca..787c2f5 100644 --- a/stress/with space.cpp +++ b/stress/with space.cpp @@ -3,4 +3,4 @@ int f( int x ){ int y=x*2; return y ;} int main(){ char* p = NULL; printf("%d\n",f(3)); return 0;} -int edited_space( ){return 1;} +static int edited_space() { return 1; }