Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
705fcb6
Add serial communication functionality with CMake configuration
Katze719 Dec 10, 2025
23ae2fb
Refactor error handling in serial communication files to use std::err…
Katze719 Dec 10, 2025
8960c43
Add integration tests and Deno configuration for cpp-bindings-linux
Katze719 Dec 10, 2025
94d0be1
Refactor integration tests for improved clarity and error handling
Katze719 Dec 10, 2025
cc28b80
Refactor error callback in `ffi_bindings.ts` for improved clarity
Katze719 Dec 10, 2025
a43e9ac
Enhance Deno configuration and refactor FFI bindings for improved rea…
Katze719 Dec 10, 2025
7f1fc7e
Delete LICENSE
Katze719 Dec 12, 2025
7bfe2fa
Add CI workflow for C++ and Deno integration tests
Katze719 Dec 15, 2025
9154f87
Update CI workflow to use Fedora container and simplify GCC configura…
Katze719 Dec 15, 2025
a7466f7
Update CI workflow to install g++ and streamline CMake configuration
Katze719 Dec 15, 2025
d313261
Add missing BOTHER definition in serial_open.cpp for compatibility wi…
Katze719 Dec 15, 2025
21bda89
Add CI workflows for building Deno shared library and running C++ tests
Katze719 Dec 16, 2025
6a40322
Refactor serial communication error handling and introduce posix_helpers
Katze719 Dec 16, 2025
516406f
Refactor serial_read to improve readability and modularity
Katze719 Dec 16, 2025
9081c61
Refactor serial communication functions to enhance clarity and mainta…
Katze719 Dec 16, 2025
70fba49
Update integration_tests/ffi_bindings.ts
Katze719 Dec 16, 2025
d888112
Update integration_tests/ffi_bindings.ts to make serial function sign…
Katze719 Dec 16, 2025
3d86cf8
Update CI workflow to use latest Ubuntu and optimize dependency insta…
Katze719 Dec 16, 2025
5adc6db
Update CI workflow to use Ubuntu 24.04 container for improved compati…
Katze719 Dec 16, 2025
e288874
Enhance handle validation in serial communication functions
Katze719 Dec 16, 2025
8d1ed1e
Refactor FFI bindings in integration_tests/ffi_bindings.ts for improv…
Katze719 Dec 16, 2025
9814c30
Add JSR package support for Linux shared library
Katze719 Dec 16, 2025
5c9ffab
Update CMakeLists.txt to bump version tags for dependencies
Katze719 Dec 16, 2025
e02830f
Add permissions to GitHub Actions workflow for JSR publishing
Katze719 Dec 16, 2025
25f6fce
Add LGPL-3.0-only license and update package metadata
Katze719 Dec 16, 2025
fa64e32
Update JSR publishing workflow to allow dirty worktree during package…
Katze719 Dec 16, 2025
50a3989
Refactor JSR package structure and remove FFI bindings
Katze719 Dec 16, 2025
f74b233
Update JSR package to use new x84_64 naming convention for binaries
Katze719 Dec 16, 2025
334e5d9
Remove exclusion of scripts from JSR package configuration in jsr.jso…
Katze719 Dec 16, 2025
a8cbcd1
Update jsr/README.md
Katze719 Dec 16, 2025
e1aac12
Update README.md to improve formatting and add license section
Katze719 Dec 16, 2025
daf9168
Update CMakeLists.txt to change cpp_core GIT_TAG from bump-version-fr…
Katze719 Dec 16, 2025
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
161 changes: 161 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
---
Language: Cpp
# BasedOnStyle: Microsoft
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignEscapedNewlines: Right
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
AttributeMacros:
- __capability
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: false
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: true
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: false
DisableFormat: false
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
StatementAttributeLikeMacros:
- Q_EMIT
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 1
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
IndentCaseLabels: false
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentRequires: false
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 1000
PenaltyIndentedWhitespace: 0
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SortJavaStaticImport: Before
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Latest
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 4
UseCRLF: false
UseTab: Never
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
...
Loading