From 30f95e92e365caa698f6702f2a269d353448dd14 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 22:35:41 +0000 Subject: [PATCH 1/2] test: rc.27 PR fixture --- -top.cpp | 1 + cap/many.cpp | 1 + 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 + 7 files changed, 17 insertions(+) create mode 100644 -top.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/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 4402396fc71019454ba304225ebb62df6d6a0f21 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 22:49:11 +0000 Subject: [PATCH 2/2] style: apply clang-format and clang-tidy fixes --- -top.cpp | 2 +- cap/many.cpp | 2 +- src/fixits.cpp | 11 ++++++----- src/no_final_newline.cpp | 9 +++++---- stress/latin1.cpp | 2 +- stress/with space.cpp | 2 +- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/-top.cpp b/-top.cpp index 2a061db..4520fad 100644 --- a/-top.cpp +++ b/-top.cpp @@ -1 +1 @@ -int top_dash( ){return 1;} +static auto top_dash() -> int { 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/src/fixits.cpp b/src/fixits.cpp index 36fe117..844f99b 100644 --- a/src/fixits.cpp +++ b/src/fixits.cpp @@ -1,8 +1,9 @@ -int fixits(int x, int *p) { - if (p == 0) +static auto fixits(int x, const int *p) -> int { + if (p == nullptr) { return 0; - if (x > 1) + } + if (x > 1) { return 1; - else - return 2; + } + return 2; } diff --git a/src/no_final_newline.cpp b/src/no_final_newline.cpp index 56c4959..ab84a3e 100644 --- a/src/no_final_newline.cpp +++ b/src/no_final_newline.cpp @@ -1,5 +1,6 @@ #include -int added(){ - int x=1; - printf("%d",x); - return x;} \ No newline at end of file +static auto added() -> int { + 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..e779511 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 auto edited_latin1() -> int { return 3; } diff --git a/stress/with space.cpp b/stress/with space.cpp index ed13fca..95939ad 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 auto edited_space() -> int { return 1; }