Skip to content

Commit

Permalink
Updated to v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bshoshany committed Dec 20, 2024
1 parent 097aa71 commit aa3fbfb
Show file tree
Hide file tree
Showing 28 changed files with 9,213 additions and 2,665 deletions.
5 changes: 3 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ AlignEscapedNewlines: Left
AlignOperands: DontAlign
AlignTrailingComments:
Kind: Always
OverEmptyLines: 2
OverEmptyLines: 0
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowBreakBeforeNoexceptSpecifier: Never
Expand Down Expand Up @@ -117,6 +117,7 @@ ReflowComments: true
RemoveBracesLLVM: false
SeparateDefinitionBlocks: Always
ShortNamespaceLines: 1
SkipMacroDefinitionBody: true
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortUsingDeclarations: true
Expand Down Expand Up @@ -152,7 +153,7 @@ SpacesInLineCommentPrefix:
Minimum: 1
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: c++17
Standard: Latest
TabWidth: 4
UseCRLF: false
UseTab: Never
61 changes: 36 additions & 25 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,45 +1,56 @@
---
CheckOptions:
misc-const-correctness.WarnPointersAsValues: true
misc-include-cleaner.IgnoreHeaders: time.h
misc-const-correctness.WarnPointersAsValues: true
misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: true
readability-magic-numbers.IgnoredIntegerValues: 0; 1; 2; 3; 4; 5; 6; 7; 8; 9; 10
Checks: >
-*,
bugprone-*,
*,
-abseil-*,
-altera-*,
-android-*,
-boost-*,
-bugprone-easily-swappable-parameters,
-bugprone-empty-catch,
-bugprone-exception-escape,
cert-*,
-cert-err58-cpp,
concurrency-*,
-concurrency-mt-unsafe,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-interfaces-global-init,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-missing-std-forward,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-special-member-functions,
hicpp-*,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-vararg,
-darwin-*,
-fuchsia-*,
-google-*,
-hicpp-avoid-c-arrays,
-hicpp-braces-around-statements,
-hicpp-named-parameter,
-hicpp-no-array-decay,
-hicpp-special-member-functions,
-hicpp-signed-bitwise,
-hicpp-use-auto,
misc-*,
-hicpp-vararg,
-linuxkernel-*,
-llvm-*,
-llvmlibc-*,
-misc-definitions-in-headers,
modernize-*,
-misc-use-internal-linkage,
-modernize-avoid-bind,
-modernize-avoid-c-arrays,
-modernize-use-auto,
-modernize-use-constraints,
-modernize-use-designated-initializers,
-modernize-use-ranges,
-modernize-use-std-numbers,
-modernize-use-trailing-return-type,
performance-*,
portability-*,
readability-*,
-mpi-*,
-objc-*,
-openmp-*,
-performance-enum-size,
-readability-avoid-nested-conditional-operator,
-readability-braces-around-statements,
-readability-const-return-type,
-readability-named-parameter,
-readability-redundant-member-init,
-readability-use-anyofallof,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-zircon-*,
HeaderFileExtensions: [h, hpp, cppm]
HeaderFilterRegex: .*
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Bug report
about: Found a bug? Report it here.
title: "[BUG]"
labels: bug
assignees: bshoshany

---

**Describe the bug**
Expand Down
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/failed-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Failed tests
about: The provided automated tests failed on your system? Report it here.
title: "[TEST]"
labels: bug
assignees: bshoshany

---

**System information**
Expand Down
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Feature request
about: Want a new feature? Suggest it here.
title: "[REQ]"
labels: enhancement
assignees: bshoshany

---

**Describe the new feature**
Expand Down
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**Pull request policy (please read)**

> Contributions are always welcome. However, I release my projects in cumulative updates after editing and testing them locally on my system, so my policy is not to accept any pull requests. If you open a pull request, and I decide to incorporate your suggestion into the project, I will first modify your code to comply with the project's coding conventions (formatting, syntax, naming, comments, programming practices, etc.), and perform some tests to ensure that the change doesn't break anything. I will then merge it into the next release of the project, possibly together with some other changes. The new release will also include a note in `CHANGELOG.md` with a link to your pull request, and modifications to the documentation in `README.md` as needed.
> Contributions are always welcome. However, I release my projects in cumulative updates after editing and testing them locally on my system, so **my policy is to never accept any pull requests**. If you open a pull request, and I decide to incorporate your suggestion into the project, I will first modify your code to comply with the project's coding conventions (formatting, syntax, naming, comments, programming practices, etc.), and perform some tests to ensure that the change doesn't break anything. I will then merge it into the next release of the project, possibly together with some other changes. The new release will also include a note in `CHANGELOG.md` with a link to your pull request, and modifications to the documentation in `README.md` as needed.
**Describe the changes**

Expand All @@ -16,7 +16,7 @@ Have you linted your code using the `.clang-tidy` file attached to this project?

**Testing**

Have you tested the new code using the provided automated test program `BS_thread_pool_test.cpp` (preferably with the provided multi-compiler test script `BS_thread_pool_test.ps1`) and/or performed any other tests to ensure that the new code works correctly?
Have you tested the new code using the provided automated test program `BS_thread_pool_test.cpp` (preferably with the provided test script `test_all.py`) and/or performed any other tests to ensure that the new code works correctly?

If so, please provide information about the test system(s):

Expand Down
110 changes: 110 additions & 0 deletions .vscode-linux/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"configurations": [
{
"browse": {
"limitSymbolsToIncludedHeaders": true
},
"compilerArgs": [
"-stdlib=libc++"
],
"compilerPath": "/usr/bin/clang++",
"cppStandard": "c++17",
"cStandard": "c17",
"defines": [
"BS_THREAD_POOL_NATIVE_EXTENSIONS"
],
"includePath": [
"${workspaceFolder}/**"
],
"intelliSenseMode": "linux-clang-x64",
"name": "Clang C++17"
},
{
"browse": {
"limitSymbolsToIncludedHeaders": true
},
"compilerArgs": [
"-stdlib=libc++"
],
"compilerPath": "/usr/bin/clang++",
"cppStandard": "c++20",
"cStandard": "c17",
"defines": [
"BS_THREAD_POOL_NATIVE_EXTENSIONS"
],
"includePath": [
"${workspaceFolder}/**"
],
"intelliSenseMode": "linux-clang-x64",
"name": "Clang C++20"
},
{
"browse": {
"limitSymbolsToIncludedHeaders": true
},
"compilerArgs": [
"-stdlib=libc++"
],
"compilerPath": "/usr/bin/clang++",
"cppStandard": "c++23",
"cStandard": "c23",
"defines": [
"BS_THREAD_POOL_NATIVE_EXTENSIONS"
],
"includePath": [
"${workspaceFolder}/**"
],
"intelliSenseMode": "linux-clang-x64",
"name": "Clang C++23"
},
{
"browse": {
"limitSymbolsToIncludedHeaders": true
},
"compilerPath": "/usr/bin/g++",
"cppStandard": "c++17",
"cStandard": "c17",
"defines": [
"BS_THREAD_POOL_NATIVE_EXTENSIONS"
],
"includePath": [
"${workspaceFolder}/**"
],
"intelliSenseMode": "linux-gcc-x64",
"name": "GCC C++17"
},
{
"browse": {
"limitSymbolsToIncludedHeaders": true
},
"compilerPath": "/usr/bin/g++",
"cppStandard": "c++20",
"cStandard": "c17",
"defines": [
"BS_THREAD_POOL_NATIVE_EXTENSIONS"
],
"includePath": [
"${workspaceFolder}/**"
],
"intelliSenseMode": "linux-gcc-x64",
"name": "GCC C++20"
},
{
"browse": {
"limitSymbolsToIncludedHeaders": true
},
"compilerPath": "/usr/bin/g++",
"cppStandard": "c++23",
"cStandard": "c23",
"defines": [
"BS_THREAD_POOL_NATIVE_EXTENSIONS"
],
"includePath": [
"${workspaceFolder}/**"
],
"intelliSenseMode": "linux-gcc-x64",
"name": "GCC C++23"
}
],
"version": 4
}
59 changes: 59 additions & 0 deletions .vscode-linux/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"configurations": [
{
"args": [],
"cwd": "${workspaceFolder}${/}build",
"name": "Build and debug (Clang C++17)",
"preLaunchTask": "Build for debugging (Clang C++17)",
"program": "${workspaceFolder}${/}build${/}${fileBasenameNoExtension}_debug-clang-cpp17",
"request": "launch",
"type": "lldb"
},
{
"args": [],
"cwd": "${workspaceFolder}${/}build",
"name": "Build and debug (Clang C++20)",
"preLaunchTask": "Build for debugging (Clang C++20)",
"program": "${workspaceFolder}${/}build${/}${fileBasenameNoExtension}_debug-clang-cpp20",
"request": "launch",
"type": "lldb"
},
{
"args": [],
"cwd": "${workspaceFolder}${/}build",
"name": "Build and debug (Clang C++23)",
"preLaunchTask": "Build for debugging (Clang C++23)",
"program": "${workspaceFolder}${/}build${/}${fileBasenameNoExtension}_debug-clang-cpp23",
"request": "launch",
"type": "lldb"
},
{
"args": [],
"cwd": "${workspaceFolder}${/}build",
"name": "Build and debug (GCC C++17)",
"preLaunchTask": "Build for debugging (GCC C++17)",
"program": "${workspaceFolder}${/}build${/}${fileBasenameNoExtension}_debug-gcc-cpp17",
"request": "launch",
"type": "cppdbg"
},
{
"args": [],
"cwd": "${workspaceFolder}${/}build",
"name": "Build and debug (GCC C++20)",
"preLaunchTask": "Build for debugging (GCC C++20)",
"program": "${workspaceFolder}${/}build${/}${fileBasenameNoExtension}_debug-gcc-cpp20",
"request": "launch",
"type": "cppdbg"
},
{
"args": [],
"cwd": "${workspaceFolder}${/}build",
"name": "Build and debug (GCC C++23)",
"preLaunchTask": "Build for debugging (GCC C++23)",
"program": "${workspaceFolder}${/}build${/}${fileBasenameNoExtension}_debug-gcc-cpp23",
"request": "launch",
"type": "cppdbg"
}
],
"version": "0.2.0"
}
Loading

0 comments on commit aa3fbfb

Please sign in to comment.