From f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 14:49:26 +0800 Subject: format * format * Minor test fixes * enable checking cpp format in ci --- tests/preprocessor/file-identity/b.h | 7 +++++-- tests/preprocessor/file-identity/c.h | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'tests/preprocessor/file-identity') diff --git a/tests/preprocessor/file-identity/b.h b/tests/preprocessor/file-identity/b.h index ba131c653..c6b731349 100644 --- a/tests/preprocessor/file-identity/b.h +++ b/tests/preprocessor/file-identity/b.h @@ -3,9 +3,12 @@ #include "c.h" #ifdef B_H -# error "Shouldn't be included twice" +#error "Shouldn't be included twice" #endif #define B_H -float foo(float x) { return x; } \ No newline at end of file +float foo(float x) +{ + return x; +} \ No newline at end of file diff --git a/tests/preprocessor/file-identity/c.h b/tests/preprocessor/file-identity/c.h index eb6cd1c42..bb8e1c698 100644 --- a/tests/preprocessor/file-identity/c.h +++ b/tests/preprocessor/file-identity/c.h @@ -3,9 +3,12 @@ #include "b.h" #ifdef C_H -# error "c.h shouldn't be included twice" +#error "c.h shouldn't be included twice" #endif #define C_H -float bar(float x) { return x; } \ No newline at end of file +float bar(float x) +{ + return x; +} \ No newline at end of file -- cgit v1.2.3