Added clangd configurations for more repositories.

This commit is contained in:
Michael Mueller
2025-06-17 19:29:58 +02:00
parent 8bb99791b8
commit 2449980a7f
4 changed files with 152 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
---
AccessModifierOffset: 1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: true
AlignFunctionPointers: true
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: true
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortCaseExpressionOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: true
BreakBeforeBraces: Linux
EmptyLineAfterAccessModifier: Always
IndentCaseBlocks: true
IndentExternBlock: Indent
IndentWrappedFunctionNames: true
IndentAccessModifiers: true
IndentPPDirectives: BeforeHash
UseTab: AlignWithSpaces
LambdaBodyIndentation: Signature
Language: Cpp
Standard: c++20
SpaceInEmptyBlock: true
NamespaceIndentation: All
IndentGotoLabels: true
BreakBeforeInlineASMColon: OnlyMultiline
IndentWidth: 4
TabWidth: 4
ColumnLimit: 100

48
repos/os/.clang-format Normal file
View File

@@ -0,0 +1,48 @@
---
AccessModifierOffset: 1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: true
AlignFunctionPointers: true
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: true
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortCaseExpressionOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: true
BreakBeforeBraces: Linux
EmptyLineAfterAccessModifier: Always
IndentCaseBlocks: true
IndentExternBlock: Indent
IndentWrappedFunctionNames: true
IndentAccessModifiers: true
IndentPPDirectives: BeforeHash
UseTab: AlignWithSpaces
LambdaBodyIndentation: Signature
Language: Cpp
Standard: c++20
SpaceInEmptyBlock: true
NamespaceIndentation: All
IndentGotoLabels: true
BreakBeforeInlineASMColon: OnlyMultiline
IndentWidth: 4
TabWidth: 4
ColumnLimit: 100

48
repos/pc/.clang-format Normal file
View File

@@ -0,0 +1,48 @@
---
AccessModifierOffset: 1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: true
AlignFunctionPointers: true
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: true
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortCaseExpressionOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: true
BreakBeforeBraces: Linux
EmptyLineAfterAccessModifier: Always
IndentCaseBlocks: true
IndentExternBlock: Indent
IndentWrappedFunctionNames: true
IndentAccessModifiers: true
IndentPPDirectives: BeforeHash
UseTab: AlignWithSpaces
LambdaBodyIndentation: Signature
Language: Cpp
Standard: c++20
SpaceInEmptyBlock: true
NamespaceIndentation: All
IndentGotoLabels: true
BreakBeforeInlineASMColon: OnlyMultiline
IndentWidth: 4
TabWidth: 4
ColumnLimit: 100

8
repos/pc/.clangd Normal file
View File

@@ -0,0 +1,8 @@
CompileFlags:
Add: [-nostdinc, -m64, -std=c++20, -ferror-limit=0]
Compiler: /usr/local/genode/tool/23.05/bin/genode-x86-g++
Diagnostics:
Suppress: '*'
ClangTidy:
Remove: '*'