Skip to content

Commit

Permalink
Merge branch 'release/v0.3.14'
Browse files Browse the repository at this point in the history
  • Loading branch information
fktn-k committed Nov 16, 2024
2 parents 01662d9 + e34b19f commit 05dc36d
Show file tree
Hide file tree
Showing 208 changed files with 4,328 additions and 2,127 deletions.
103 changes: 47 additions & 56 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
Language: Cpp
# BasedOnStyle: Microsoft
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignArrayOfStructures: None
Expand All @@ -9,11 +8,12 @@ AlignConsecutiveBitFields: false
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: false
AlignEscapedNewlines: Right
AlignOperands: Align
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Never
AllowBreakBeforeNoexceptSpecifier: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
Expand All @@ -30,45 +30,43 @@ BinPackArguments: false
BinPackParameters: true
BitFieldColonSpacing: Both
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterEnum: false
AfterExternBlock: false
AfterFunction: false
AfterNamespace: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
# BreakAfterAttributes: Never # since clang-format 16
BreakAfterAttributes: Never
BreakAfterJavaFieldAnnotations: false
# BreakArrays: true # since clang-format 16
BreakArrays: true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: true
BreakBeforeBraces: Custom
# BreakBeforeInlineASMColon: OnlyMultiline # since clang-format 16
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
BreakStringLiterals: true
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DeriveLineEnding: true
DisableFormat: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
Expand All @@ -79,20 +77,20 @@ ForEachMacros:
- BOOST_FOREACH
IfMacros:
- KJ_IF_MAYBE
IncludeBlocks: Preserve
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
- 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: ''
IndentAccessModifiers: false
Expand All @@ -101,23 +99,19 @@ IndentCaseLabels: false
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentPPDirectives: None
# IndentRequiresClause: true # since clang-format 15
IndentWidth: 4
IndentRequiresClause: true
IndentWidth: 4
IndentWrappedFunctionNames: false
# InsertBraces: false # since clang-format 15
# InsertNewlineAtEOF: false # since clang-format 16
InsertBraces: false
InsertNewlineAtEOF: true
InsertTrailingCommas: None
# IntegerLiteralSeparator: # since clang-format 16
# Binary: 0
# Decimal: 0
# Hex: 0
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
# LineEnding: DeriveLF # since clang-format 16
LineEnding: DeriveLF
MacroBlockBegin: ''
MacroBlockEnd: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
Expand All @@ -137,14 +131,13 @@ PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 1000
PointerAlignment: Left
PPIndentWidth: -1
PPIndentWidth: -1
QualifierAlignment: Leave
ReferenceAlignment: Pointer
ReflowComments: true
RemoveBracesLLVM: false
# RemoveSemicolon: false # since clang-format 16
# RequiresClausePosition: OwnLine # since clang-format 15
# RequiresExpressionIndentation: OuterScope # since clang-format 16
RemoveSemicolon: false
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SortIncludes: Never
Expand All @@ -165,10 +158,8 @@ SpaceBeforeParensOptions:
AfterForeachMacros: true
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterIfMacros: true
AfterOverloadedOperator: false
# AfterRequiresInClause: false
# AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
Expand All @@ -180,18 +171,18 @@ SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
Minimum: 1
Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Latest
Standard: Latest
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 4
UseTab: Never
TabWidth: 4
UseTab: Never
UseCRLF: false
WhitespaceSensitiveMacros:
- BOOST_PP_STRINGIZE
Expand Down
20 changes: 18 additions & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,44 @@ Checks: '*,
-altera-id-dependent-backward-branch,
-altera-struct-pack-align,
-altera-unroll-loops,
-cert-dcl21-cpp,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-type-vararg,
-fuchsia-default-arguments-calls,
-fuchsia-default-arguments-declarations,
-fuchsia-overloaded-operator,
-google-explicit-constructor,
-google-readability-todo,
-hicpp-avoid-c-arrays,
-hicpp-explicit-conversions,
-hicpp-noexcept-move,
-hicpp-signed-bitwise,
-hicpp-uppercase-literal-suffix,
-hicpp-vararg,
-llvm-header-guard,
-llvm-include-order,
-llvmlibc-*,
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
-modernize-avoid-c-arrays,
-modernize-use-nodiscard,
-modernize-type-traits,
-modernize-use-trailing-return-type,
-performance-noexcept-move-constructor,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-magic-numbers,
-readability-redundant-access-specifiers'
-readability-redundant-access-specifiers,
-readability-simplify-boolean-expr,
-readability-uppercase-literal-suffix'
WarningsAsErrors: '*'
HeaderFilterRegex: ''
CheckOptions:
Expand All @@ -39,13 +55,13 @@ CheckOptions:
- { key: readability-identifier-naming.ClassMemberCase, value: lower_case }
- { key: readability-identifier-naming.ClassMemberPrefix, value: s_ }
- { key: readability-identifier-naming.PrivateMemberCase, value: lower_case }
- { key: readability-identifier-naming.PrivateMemberPrefix, value: m_ }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.ParameterCase, value: lower_case }
- { key: readability-identifier-naming.ConstantParameterCase, value: lower_case }
- { key: readability-identifier-naming.StaticConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.LocalConstantCase, value: lower_case }
- { key: readability-identifier-naming.ConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.ConstexprVariableCase, value: lower_case }
- { key: readability-identifier-naming.FunctionCase, value: lower_case }
- { key: readability-identifier-naming.TemplateParameter, value: CamelCase }
- { key: readability-identifier-naming.Namespace, value: lower_case }
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
jobs:
coverage:
timeout-minutes: 10
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
pull-requests: write

Expand Down
28 changes: 27 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,33 @@ jobs:
runs-on: macos-14
strategy:
matrix:
xcode: [ '14.3.1', '15.0.1', '15.1', '15.2', '15.3' ]
xcode: [ '14.3.1', '15.0.1', '15.1', '15.2', '15.3', '15.4', '16' ]
build_type: [ Debug, Release ]
env:
DEVELOPER_DIR: /Applications/Xcode_${{matrix.xcode}}.app/Contents/Developer
JOBS: 2

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DFK_YAML_BUILD_TEST=ON

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} -j ${{env.JOBS}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}} --output-on-failure -j ${{env.JOBS}}

xcode_for_macos15:
timeout-minutes: 10
runs-on: macos-15
strategy:
matrix:
xcode: [ '16' ]
build_type: [ Debug, Release ]
env:
DEVELOPER_DIR: /Applications/Xcode_${{matrix.xcode}}.app/Contents/Developer
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

ci_test_clang_tidy:
timeout-minutes: 10
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand All @@ -73,7 +73,7 @@ jobs:

ci_test_iwyu:
timeout-minutes: 10
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .reuse/templates/fkYAML.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_______ __ __ __ _____ __ __ __
| __| |_/ | \_/ |/ _ \ / \/ \| | fkYAML: A C++ header-only YAML library
| __| _ < \_ _/| ___ | _ | |___ version 0.3.13
| __| _ < \_ _/| ___ | _ | |___ version 0.3.14
|__| |_| \__| |_| |_| |_|___||___|______| https://github.com/fktn-k/fkYAML

{% for copyright_line in copyright_lines %}
Expand Down
2 changes: 1 addition & 1 deletion .reuse/templates/fkYAML_support.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_______ __ __ __ _____ __ __ __
| __| |_/ | \_/ |/ _ \ / \/ \| | fkYAML: A C++ header-only YAML library (supporting code)
| __| _ < \_ _/| ___ | _ | |___ version 0.3.13
| __| _ < \_ _/| ___ | _ | |___ version 0.3.14
|__| |_| \__| |_| |_| |_|___||___|______| https://github.com/fktn-k/fkYAML

{% for copyright_line in copyright_lines %}
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## [v0.3.14](https://github.com/fktn-k/fkYAML/releases/tag/v0.3.14) (2024-11-16)

[Full Changelog](https://github.com/fktn-k/fkYAML/compare/v0.3.13...v0.3.14)

- Disable -Wdeprecated-literal-operator warnings [\#417](https://github.com/fktn-k/fkYAML/pull/417) ([fktn-k](https://github.com/fktn-k))
- Fix wrong scalar value type detection from floating point value token [\#414](https://github.com/fktn-k/fkYAML/pull/414) ([fktn-k](https://github.com/fktn-k))

- Exclude detail::unreachable\(\) from coverage target [\#426](https://github.com/fktn-k/fkYAML/pull/426) ([fktn-k](https://github.com/fktn-k))
- Use std::unreachable\(\) or similar compiler specific extensions for dead but necessary code [\#425](https://github.com/fktn-k/fkYAML/pull/425) ([fktn-k](https://github.com/fktn-k))
- Clarify type restrictions of get\_value\(\) & get\_value\_ref\(\) APIs [\#424](https://github.com/fktn-k/fkYAML/pull/424) ([fktn-k](https://github.com/fktn-k))
- Fix duplicate include error if clang-tidy helper file already exists [\#423](https://github.com/fktn-k/fkYAML/pull/423) ([fktn-k](https://github.com/fktn-k))
- Add forward declaration header [\#422](https://github.com/fktn-k/fkYAML/pull/422) ([fktn-k](https://github.com/fktn-k))
- Support more STL types in from\_node [\#421](https://github.com/fktn-k/fkYAML/pull/421) ([fktn-k](https://github.com/fktn-k))
- Numeric scalar conversions inside basic\_node::get\_value API [\#419](https://github.com/fktn-k/fkYAML/pull/419) ([fktn-k](https://github.com/fktn-k))
- Fix somehow shadowed clang-tidy warnings [\#418](https://github.com/fktn-k/fkYAML/pull/418) ([fktn-k](https://github.com/fktn-k))
- GA workflow jobs with more AppleClang versions on macOS [\#416](https://github.com/fktn-k/fkYAML/pull/416) ([fktn-k](https://github.com/fktn-k))
- Update GA workflow jobs for ubuntu24.04 [\#415](https://github.com/fktn-k/fkYAML/pull/415) ([fktn-k](https://github.com/fktn-k))

## [v0.3.13](https://github.com/fktn-k/fkYAML/releases/tag/v0.3.13) (2024-10-14)

[Full Changelog](https://github.com/fktn-k/fkYAML/compare/v0.3.12...v0.3.13)
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.8)

project(
fkYAML
VERSION 0.3.13
VERSION 0.3.14
LANGUAGES CXX)

#############################################################
Expand Down
Loading

0 comments on commit 05dc36d

Please sign in to comment.