From: Carlos Maniero <carlos@maniero.me>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Carlos Maniero <carlos@maniero.me>
Subject: [PATCH olang v2] style: fix clang-format format indentation
Date: Wed, 14 Feb 2024 20:57:49 -0300 [thread overview]
Message-ID: <20240214235749.62209-1-carlos@maniero.me> (raw)
In-Reply-To: <20240214233630.45227-1-carlos@maniero.me>
editorconfig was set to 4 spaces clang-format was expecting 2.
Signed-off-by: Carlos Maniero <carlos@maniero.me>
---
v2:
- I forgot to fix the 0c.c file
.clang-format | 6 +++---
src/0c.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.clang-format b/.clang-format
index 2850fff..b76afee 100644
--- a/.clang-format
+++ b/.clang-format
@@ -81,8 +81,8 @@ ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
QualifierAlignment: Leave
CompactNamespaces: false
-ConstructorInitializerIndentWidth: 2
-ContinuationIndentWidth: 2
+ConstructorInitializerIndentWidth: 4
+ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DeriveLineEnding: true
DerivePointerAlignment: false
@@ -124,7 +124,7 @@ IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentRequiresClause: true
-IndentWidth: 2
+IndentWidth: 4
IndentWrappedFunctionNames: false
InsertBraces: false
InsertTrailingCommas: None
diff --git a/src/0c.c b/src/0c.c
index 97a8f47..33ac945 100644
--- a/src/0c.c
+++ b/src/0c.c
@@ -17,5 +17,5 @@
int
main(void)
{
- return 0;
+ return 0;
}
--
2.34.1
next prev parent reply other threads:[~2024-02-15 0:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-14 23:36 [PATCH olang] " Carlos Maniero
2024-02-14 23:41 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-14 23:57 ` Carlos Maniero [this message]
2024-02-15 13:22 ` [PATCH olang v2] style: fix clang-format format indentation Johnny Richard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240214235749.62209-1-carlos@maniero.me \
--to=carlos@maniero.me \
--cc=~johnnyrichard/olang-devel@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.johnnyrichard.com/olang.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox