Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
85 changes: 47 additions & 38 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,61 +1,70 @@
---
BasedOnStyle: LLVM
AccessModifierOffset: '-4'
AccessModifierOffset: "-4"
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: 'true'
AlignConsecutiveDeclarations: 'false'
AlignConsecutiveMacros: "true"
AlignConsecutiveDeclarations: "false"
AlignEscapedNewlines: Left
AllowAllArgumentsOnNextLine: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'true'
AllowShortBlocksOnASingleLine: 'Never'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: 'false'
AllowAllArgumentsOnNextLine: "true"
AllowAllParametersOfDeclarationOnNextLine: "true"
AllowShortBlocksOnASingleLine: "Never"
AllowShortCaseLabelsOnASingleLine: "false"
AllowShortFunctionsOnASingleLine: "false"
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakBeforeMultilineStrings: 'false'
AllowShortLoopsOnASingleLine: "false"
AlwaysBreakBeforeMultilineStrings: "false"
AlwaysBreakTemplateDeclarations: MultiLine
BinPackArguments: 'true'
BinPackParameters: 'false'
BinPackArguments: "true"
BinPackParameters: "false"
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: 'true'
BreakBeforeTernaryOperators: "true"
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BreakStringLiterals: 'true'
BreakStringLiterals: "true"
ColumnLimit: 100
CompactNamespaces: 'false'
Cpp11BracedListStyle: 'true'
DerivePointerAlignment: 'false'
FixNamespaceComments: 'true'
CompactNamespaces: "false"
Cpp11BracedListStyle: "true"
DerivePointerAlignment: "false"
FixNamespaceComments: "true"
IncludeBlocks: Regroup
IndentCaseLabels: 'false'
IndentCaseLabels: "false"
IndentPPDirectives: BeforeHash
IndentWidth: 4
IndentWrappedFunctionNames: 'true'
KeepEmptyLinesAtTheStartOfBlocks: 'false'
IndentWrappedFunctionNames: "true"
KeepEmptyLinesAtTheStartOfBlocks: "false"
Language: Cpp
NamespaceIndentation: Inner
PackConstructorInitializers: Never
PointerAlignment: Left
ReflowComments: 'true'
SortIncludes: 'CaseInsensitive'
SortUsingDeclarations: 'true'
SpaceAfterLogicalNot: 'false'
SpaceAfterTemplateKeyword: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeCpp11BracedList: 'true'
SpaceBeforeCtorInitializerColon: 'true'
SpaceBeforeInheritanceColon: 'true'
ReflowComments: "true"
SortIncludes: "CaseInsensitive"
SortUsingDeclarations: "true"
IncludeCategories:
# Standard library headers with angle brackets
- Regex: "^<[a-z_][a-z0-9_]*>$"
Priority: 1
# Third-party headers with angle brackets (ending with .h or .hpp)
- Regex: "^<.*\\.(h|hpp)>$"
Priority: 2
# Local headers with quotes
- Regex: '^".*"'
Priority: 3

SpaceAfterLogicalNot: "false"
SpaceAfterTemplateKeyword: "false"
SpaceBeforeAssignmentOperators: "true"
SpaceBeforeCpp11BracedList: "true"
SpaceBeforeCtorInitializerColon: "true"
SpaceBeforeInheritanceColon: "true"
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: 'true'
SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
SpaceBeforeRangeBasedForLoopColon: "true"
SpacesInAngles: "false"
SpacesInCStyleCastParentheses: "false"
SpacesInContainerLiterals: "false"
SpacesInParentheses: "false"
SpacesInSquareBrackets: "false"
Standard: Cpp11
QualifierAlignment: Right
UseTab: Never

...
10 changes: 9 additions & 1 deletion .clangd
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
CompileFlags:
CompilationDatabase: "build/debug"
CompilationDatabase: ".vscode/"
Add:
- "-std=c++23"
- "-Wunused-variable"
- "-Wunused-parameter"
- "-Wunused-function"
- "-Wunused-value"
- "-Wunused-result"
- "-Wunused-local-typedefs"
- "-Wunused-private-field"
- "-Wunused-but-set-variable"
Remove:
- "-fconcepts"
27 changes: 23 additions & 4 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
{
"build": {
"dockerfile": "Dockerfile",
"context": ".",
"target": "development"
"name": "bxt Development",
"dockerComposeFile": "./docker-compose.dev.yml",
"service": "development",
"workspaceFolder": "/home/${localEnv:USER:developer}/workspace",
"remoteUser": "${localEnv:USER:developer}",

"shutdownAction": "stopContainer",
"customizations": {
"vscode": {
"extensions":[
"esbenp.prettier-vscode",
"llvm-vs-code-extensions.vscode-clangd",
"ms-vscode.cmake-tools",
"tamasfe.even-better-toml",
"twxs.cmake",
"llvm-vs-code-extensions.lldb-dap",
"42crunch.vscode-openapi",
"redhat.vscode-yaml",
"tdennis4496.cmantic",
"tboox.xmake-vscode"
]
}
}

}
Loading