public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
* [PATCH olang] style: fix clang-format format indentation
@ 2024-02-14 23:36 Carlos Maniero
  2024-02-14 23:41 ` [olang/patches/.build.yml] build failed builds.sr.ht
  2024-02-14 23:57 ` [PATCH olang v2] style: fix clang-format format indentation Carlos Maniero
  0 siblings, 2 replies; 4+ messages in thread
From: Carlos Maniero @ 2024-02-14 23:36 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Carlos Maniero

editorconfig was set to 4 spaces clang-format was expecting 2.

Signed-off-by: Carlos Maniero <carlos@maniero.me>
---
 .clang-format | 6 +++---
 1 file changed, 3 insertions(+), 3 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
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-14 23:36 [PATCH olang] style: fix clang-format format indentation Carlos Maniero
@ 2024-02-14 23:41 ` builds.sr.ht
  2024-02-14 23:57 ` [PATCH olang v2] style: fix clang-format format indentation Carlos Maniero
  1 sibling, 0 replies; 4+ messages in thread
From: builds.sr.ht @ 2024-02-14 23:41 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 16s

[style: fix clang-format format indentation][0] from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49522
[1]: mailto:carlos@maniero.me

✗ #1150343 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1150343

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH olang v2] style: fix clang-format format indentation
  2024-02-14 23:36 [PATCH olang] style: fix clang-format format indentation Carlos Maniero
  2024-02-14 23:41 ` [olang/patches/.build.yml] build failed builds.sr.ht
@ 2024-02-14 23:57 ` Carlos Maniero
  2024-02-15 13:22   ` Johnny Richard
  1 sibling, 1 reply; 4+ messages in thread
From: Carlos Maniero @ 2024-02-14 23:57 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Carlos Maniero

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH olang v2] style: fix clang-format format indentation
  2024-02-14 23:57 ` [PATCH olang v2] style: fix clang-format format indentation Carlos Maniero
@ 2024-02-15 13:22   ` Johnny Richard
  0 siblings, 0 replies; 4+ messages in thread
From: Johnny Richard @ 2024-02-15 13:22 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

Thanks!

To git.sr.ht:~johnnyrichard/olang
   d1f70ac..0518096  main -> main

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-15 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-14 23:36 [PATCH olang] style: fix clang-format format indentation Carlos Maniero
2024-02-14 23:41 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-14 23:57 ` [PATCH olang v2] style: fix clang-format format indentation Carlos Maniero
2024-02-15 13:22   ` Johnny Richard

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