Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
16d294e
Modernize Dockerfile using HEREDOCS syntax
fruzitent Apr 24, 2023
927a941
Move default settings into customizations category
fruzitent Apr 24, 2023
33c8ec4
Don't auto-install extensions, so container can be started offline
fruzitent Apr 24, 2023
757e023
Use named volume for increased performance
fruzitent Apr 24, 2023
1a2872e
Use WSLg to forward X-Server
fruzitent Apr 24, 2023
5a54cca
Update recommended defaults
fruzitent Apr 24, 2023
1243648
Use .json as .yml requires additional dependencies
fruzitent Apr 24, 2023
f35188a
Rename LICENSE to LICENSE.md
fruzitent Apr 24, 2023
430583f
Update .gitignore
fruzitent Apr 24, 2023
b47738a
LGTM is deprecated as of August 2022
fruzitent Apr 24, 2023
7c9e063
Remove inline HTML from .md
fruzitent Apr 24, 2023
7e59444
Update Dockerfile
fruzitent Apr 25, 2023
0c802b7
Fix header resolution for clangd
fruzitent Apr 25, 2023
1a4017c
Update README.md
fruzitent Apr 25, 2023
c899b39
Compatibility fix for codespaces
fruzitent Apr 26, 2023
0e4114a
apply formatting, may need some additional changes
fruzitent Apr 26, 2023
672392b
Update configuration files
fruzitent Apr 26, 2023
8544cfa
fix "expected expression" compilation error
fruzitent Apr 26, 2023
31432b1
Pre-Build Dev Container
fruzitent Apr 26, 2023
a724803
Update Dockerfile
fruzitent Apr 28, 2023
49d5bbc
Merge branch 'cpp-best-practices:main' into main
fruzitent Apr 29, 2023
5416094
NOLINT only specific checks
fruzitent Apr 29, 2023
38960d4
Simplify clang-format
fruzitent Apr 29, 2023
20588ec
Update clang-format
fruzitent Apr 29, 2023
c2ca43b
Merge remote-tracking branch 'upstream/main'
fruzitent Apr 29, 2023
33d2b90
Update workflows
fruzitent Apr 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 40 additions & 91 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,98 +1,47 @@
AccessModifierOffset: -2
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
# yaml-language-server: $schema=https://raw.githubusercontent.com/grizzie17/clang-format-schema/master/clang-format-schema.json

# Reference: https://clang.llvm.org/docs/ClangFormatStyleOptions.html

AlignArrayOfStructures: Left
AlignConsecutiveAssignments:
AlignCompound: true
Enabled: true
AlignConsecutiveBitFields:
Enabled: true
AlignConsecutiveDeclarations:
Enabled: true
AlignConsecutiveMacros:
Enabled: true
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: false
AlignOperands: AlignAfterOperator
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: false
AllowShortBlocksOnASingleLine: Empty
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Empty
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterClass: true
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyNamespace: true
SplitEmptyRecord: true
BreakAfterJavaFieldAnnotations: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakConstructorInitializersBeforeComma: false
BreakStringLiterals: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
EmptyLineBeforeAccessModifier: Always
ExperimentalAutoDetectBinPacking: true
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeCategories:
- Priority: 2
Regex: ^"(llvm|llvm-c|clang|clang-c)/
- Priority: 3
Regex: ^(<|"(gtest|gmock|isl|json)/)
- Priority: 1
Regex: .*
IncludeIsMainRegex: (Test)?$
IndentCaseLabels: false
IndentWidth: 2
IndentWrappedFunctionNames: true
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
Language: Cpp
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2
NamespaceIndentation: Inner
ObjCBlockIndentWidth: 7
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: false
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: false
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 0
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: true
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: c++20
TabWidth: 8
UseTab: Never

IncludeBlocks: Regroup
IndentCaseLabels: true
IndentExternBlock: Indent
IndentWidth: 4
InsertBraces: true
InsertTrailingCommas: Wrapped
KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: All
PackConstructorInitializers: CurrentLine
QualifierAlignment: Left
RemoveSemicolon: true
RequiresClausePosition: SingleLine
SeparateDefinitionBlocks: Always
SortIncludes: CaseInsensitive
SortUsingDeclarations: LexicographicNumeric
40 changes: 15 additions & 25 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
---
Checks: "*,
-abseil-*,
-altera-*,
-android-*,
-fuchsia-*,
-google-*,
-llvm*,
-modernize-use-trailing-return-type,
-zircon-*,
-readability-else-after-return,
-readability-static-accessed-through-instance,
-readability-avoid-const-params-in-decls,
-cppcoreguidelines-non-private-member-variables-in-classes,
-misc-non-private-member-variables-in-classes,
"
WarningsAsErrors: ''
HeaderFilterRegex: ''
FormatStyle: none
-abseil-*,
-altera-*,
-android-*,
-fuchsia-*,
-google-*,
-llvm*,
-zircon-*,
-*-non-private-member-variables-in-classes,
"

CheckOptions:
- key: readability-identifier-length.IgnoredVariableNames
value: 'x|y|z'
- key: readability-identifier-length.IgnoredParameterNames
value: 'x|y|z'




value: "x|y|z"
- key: readability-identifier-length.IgnoredVariableNames
value: "x|y|z"

FormatStyle: none
HeaderFilterRegex: ""
WarningsAsErrors: ""
2 changes: 2 additions & 0 deletions .clangd.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
CompilationDatabase: "@CMAKE_BINARY_DIR@"
13 changes: 13 additions & 0 deletions .cmake-format.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/voidei/cmake_format/master/cmakelang/vscode_extension/schema/cmake-format.schema.json",
"encode": {},
"format": {
"autosort": true,
"dangle_parens": true,
"line_width": 120
},
"lint": {},
"markup": {},
"misc": {},
"parse": {}
}
21 changes: 0 additions & 21 deletions .cmake-format.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions .devcontainer/.dockerignore

This file was deleted.

Loading