Moved to clangd as language server.

This commit is contained in:
Michael Mueller
2025-05-05 18:09:19 +02:00
parent f46bd8755e
commit d2cd009a00
9 changed files with 81478 additions and 0 deletions

1
.gitignore vendored
View File

@@ -17,6 +17,7 @@
/repos/zynq
/experiments
.cache/
repos/ealanos/.vscode/settings.json
repos/ealanos/.vscode/c_cpp_properties.json
repos/base-tukija/.vscode/c_cpp_properties.json

81261
compile_commands.json Normal file

File diff suppressed because it is too large Load Diff

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

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: '*'

48
repos/base/.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/base/.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: '*'

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/ealanos/.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: '*'

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