Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c9a590f
Add initial project structure with CMake configuration, coding style …
Katze719 Jul 6, 2025
4e8b408
Revise README.md to reflect project renaming to cpp-core, update proj…
Katze719 Jul 6, 2025
3f6cf07
Update README.md to change the GitHub repository reference for cpp-core
Katze719 Jul 6, 2025
0285f3c
Add namespace cpp_core to StatusCodes enum in status_codes.h
Katze719 Jul 6, 2025
0effc9c
Refactor cpp_core namespace and update getVersion function to inline …
Katze719 Jul 6, 2025
e5b00b4
Apply suggestion from @Mqxx
Katze719 Jul 6, 2025
908be3e
Apply suggestion from @Mqxx
Katze719 Jul 6, 2025
6f24fab
Apply suggestion from @Mqxx
Katze719 Jul 6, 2025
ff62ee2
Apply suggestion from @Mqxx
Katze719 Jul 6, 2025
61723f5
Apply suggestion from @Mqxx
Katze719 Jul 6, 2025
c50b476
Update CMake configuration to generate version header in the binary d…
Katze719 Jul 6, 2025
6b33329
Update serial.h to conditionally include version header based on avai…
Katze719 Jul 6, 2025
cdf3eac
Refactor CMake configuration to simplify version handling and update …
Katze719 Jul 6, 2025
e731cd2
Update README.md to clarify usage of cache variables for versioning i…
Katze719 Jul 6, 2025
6ee1837
Enhance documentation with FFI usage guides for Deno, add C API refer…
Katze719 Jul 6, 2025
b8e2ec5
Add comprehensive library overview documentation, including installat…
Katze719 Jul 6, 2025
26a7b34
Enhance C API reference documentation with detailed function descript…
Katze719 Jul 6, 2025
d7a1b3c
Update C API reference documentation to include `libcpp_windows_bindi…
Katze719 Jul 6, 2025
1a68cab
Update .clang-format
Katze719 Jul 7, 2025
5edc9a0
Update .clang-tidy
Katze719 Jul 7, 2025
cf65b19
Refactor serial API in header files for consistency and clarity; upda…
Katze719 Jul 7, 2025
cc44262
Enhance serial API documentation in header file with detailed functio…
Katze719 Jul 7, 2025
769fd36
Update include/cpp_core/serial.h
Katze719 Jul 8, 2025
557d9c2
Delete docs/deno_ffi.md
Katze719 Jul 8, 2025
6a01906
Apply suggestion from @Mqxx
Katze719 Jul 8, 2025
a4043ec
Delete docs/api_reference.md
Katze719 Jul 8, 2025
f8ed4f0
Delete include/cpp_core/helpers.h
Katze719 Jul 8, 2025
ab7f65b
Update project to require C++23, reflecting changes in CMakeLists.txt…
Katze719 Jul 8, 2025
59d9d0d
Refine serial API documentation in header file for clarity and consis…
Katze719 Jul 8, 2025
a1aee33
Update CMake configuration files: rename cpp_coreConfig.cmake.in to c…
Katze719 Jul 8, 2025
9fc44a9
Enhance serialWriteLine function signature in serial.h to include a m…
Katze719 Jul 8, 2025
99f4394
Refactor serial API function signatures in serial.h for improved read…
Katze719 Jul 8, 2025
b4957bb
Update include/cpp_core/serial.h
Katze719 Jul 9, 2025
26ac28a
Update include/cpp_core/serial.h
Katze719 Jul 9, 2025
3eab2c1
Add umbrella header and modular API for cpp_core library
Katze719 Jul 9, 2025
27ee3a7
Refactor formatting and documentation in cpp_core interface headers
Katze719 Jul 9, 2025
4bbad79
Remove serialWriteLine function and its header from cpp_core library
Katze719 Jul 9, 2025
6c124eb
Update include/cpp_core/interface/serial_get_ports_info.h
Katze719 Jul 10, 2025
a3460c8
Update include/cpp_core/interface/serial_set_error_callback.h
Katze719 Jul 10, 2025
a7ed564
Update include/cpp_core/interface/serial_set_read_callback.h
Katze719 Jul 10, 2025
fe273d8
Update include/cpp_core/interface/serial_set_write_callback.h
Katze719 Jul 10, 2025
1bd6256
Add error callback support to serial interface functions
Katze719 Jul 10, 2025
bb57b7c
Add optional error callback parameter to serial interface functions
Katze719 Jul 10, 2025
9ff2e5a
Update .gitignore and CMakeLists.txt; refine documentation in serial …
Katze719 Jul 10, 2025
719f80b
Clarify return value documentation in serial interface headers
Katze719 Jul 10, 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
163 changes: 163 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
---
Language: Cpp
# BasedOnStyle: Microsoft
AccessModifierOffset: -2
AlignAfterOpenBracket: BlockIndent
AlignEscapedNewlines: Right
AlignOperands: Align
AlignTrailingComments: false
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: 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: false
BinPackParameters: AlwaysOnePerLine
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