Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
86a8879
Updated changelog
Aug 6, 2024
e0e388d
Restored PR #1255: Spellflags fix reorganization
Aug 7, 2024
7a9a90c
Fixed Linux/MacOS ARM build artifact not being uploaded to our host a…
Aug 7, 2024
cef9cc2
Merged DavideRei PR: Read mobtypes.txt and handle standard and custo…
Aug 10, 2024
a5fbc8d
Merged PR from GladieUO: CAN_I_DAMAGEABLE not updating status bar #1259
Aug 10, 2024
68caf99
- Fixed: script cacher ignored newlines, causing wrong script line co…
cbnolok Aug 17, 2024
dc59957
Added more functions to typecast.h
Aug 26, 2024
dffa6fb
Added Linux-AArch64 and OSX-AArch64 toolchains, cleanup of other tool…
Aug 26, 2024
89c192d
Fixed localtime on MacOS, added safe_gmtime for thread-safety
Aug 26, 2024
60bb843
Incremented MaxConnectRequestPerIp default value to 40. Refactor defr…
Aug 26, 2024
c0727c6
Fix library search path.
Aug 26, 2024
844c61b
Fixed ARM compilation warnings (compiler defaults char to uchar inste…
Aug 26, 2024
6194606
Add "getting started" documentation (#1276)
Otacon Aug 26, 2024
1f43026
Minimal refactoring to README.md, formatted the builds table to be mo…
Aug 26, 2024
72d9111
FACTION fix, breaking change.it has been split in two different prope…
Aug 28, 2024
ad1e36f
Changed: enabled resource/defname redefinition warning also for non-d…
Aug 30, 2024
dfd57ac
Fix macos compilation error
Aug 30, 2024
5ca9f8e
Added mutex lock retry macros
Aug 31, 2024
ba4fcea
Moved FACTION/SLAYER code into a CComponentProps.
Sep 3, 2024
ae8297f
Move the workflow binariy and .ini files into the root folder #1277
Sep 5, 2024
13d7afe
Fixed WSC import/export relative P.
Sep 5, 2024
0d95e68
Treat compiler/linker warnings as errors.
Sep 5, 2024
7ecb594
Fixed some leftover code, re-added fix from a PR not fully merged
Sep 5, 2024
5c5f962
Save SLAYER/FACTION* properties in worldsave files. Fixed some wrong …
Sep 6, 2024
19351c4
Added an sh script to automate reformatting of cmake files.
Sep 6, 2024
8646403
Fixed SLAYER/FACTION_GROUP/SPECIES not being correctly loaded from th…
cbnolok Sep 7, 2024
eae1a45
Formatted cmake files with gersemi.
Sep 8, 2024
8dece16
CMake files (cmake_format_gersemi.sh): added tab conversion to 4 spac…
Sep 8, 2024
56a6769
Fixed dorigin, regression in previous refactoring and fixes.
Sep 8, 2024
f670e25
Add bash script to run clang-format. Minor changes to .clang-format.
Sep 8, 2024
2981b76
Add .clang-tidy stub.
Sep 8, 2024
af5f7d3
Update .clang-tidy, fixed a couple of linter warnings.
Sep 9, 2024
899b93b
Updated f_onserver_connectreq_ex.
Sep 10, 2024
3719de4
Fixed slayer damage bonus.
Sep 10, 2024
0998d8f
Updated .clang-format and .editorconfig
Sep 10, 2024
0768175
Fix PartyAdd context menu (#1283)
DavideRei Sep 10, 2024
01be47e
Added stricter warning flags for GCC and Clang.
Sep 12, 2024
29e62c1
Added .clangd and CMAKE_EXPORT_COMPILE_COMMANDS option.
Sep 13, 2024
1291c44
Fixed: When acquiring a new pet follower, CurFollower incremented by …
Sep 13, 2024
5b03df7
Fixed exception on Linux when stdin was not a terminal (i.e. debugging
Sep 13, 2024
b0584d0
Renamed a couple of cmake utility files.
Sep 14, 2024
013287b
Huge cleanup of header files, now removing useless includes.
Sep 14, 2024
a5c6b7e
Fixed wrong ASSERT when moving an item to a sector.
Sep 15, 2024
8889ea6
New fix for followerslots. Fixed BaseID cropping IDs > int16_max. Add…
Sep 17, 2024
55f9688
Changed compiler flags for debug builds, to enable better line-to-lin…
Sep 17, 2024
05a7f00
Fixed Windows MSVC compilation warnings.
Sep 18, 2024
16f3030
Fixed Linux x86 compilation, broken after upgrading the minimum CMake…
Sep 18, 2024
aafb234
Added precompiled headers. This speeds up dramatically the compilatio…
Sep 18, 2024
441d724
Fixed followerslots with animal taming.
Sep 19, 2024
75c7492
Renamed PERSISTANT_ASSERT to ASSERT_ALWAYS.
Sep 19, 2024
fdad3b7
Fixed followerslots and summon creature spells.
Sep 19, 2024
49763ac
Other FollowerSlots/CurFollower fixes.
cbnolok Sep 21, 2024
335c946
Added CMake script to autodetect supported compiler flags, among thos…
cbnolok Sep 21, 2024
4860a3c
Fixed typo in parsing the house designer csv files.
cbnolok Sep 21, 2024
9f6466e
Fixed compilation warning.
cbnolok Sep 21, 2024
e4b70e2
Fixed featuremask reading in CItemMultiCustom.
cbnolok Sep 21, 2024
7c83f5f
Fix ship turn for custom ship with custom z components (#1288)
DavideRei Sep 21, 2024
304255e
Update sphereCrypt.ini (#1297)
Jhobean Sep 25, 2024
575d539
Added sanitizers options to CompilerFlagsChecker.cmake
cbnolok Sep 21, 2024
4446409
Reordered stypecast.h, moved some inlined CSString methods to the .cp…
cbnolok Sep 21, 2024
e3ba11d
Updated .clang-format
cbnolok Sep 21, 2024
6393686
Added some static qualifiers, moved some functions from spheresvr.cpp…
cbnolok Sep 23, 2024
250cae7
Moved all the compiler/linker flags selection for GCC/Clang in Compil…
cbnolok Sep 23, 2024
05b889d
Fixes and additions for FOLLOWERSLOTS, fix for LIST.
cbnolok Oct 3, 2024
b75a9c9
Refactoring and small additions to CompilerFlagsChecker.cmake.
cbnolok Oct 3, 2024
d69dda5
stypecast.h: split checked casts, one variant using ASSERT, another j…
cbnolok Oct 3, 2024
c3f890d
Fixed: on Windows, the console window closed itself after a failed se…
cbnolok Oct 3, 2024
28586ef
Fixed MinGW compilation with both Clang and MSVC runtime libs.
cbnolok Oct 3, 2024
ded506c
Updated .clang-format and .gitignore.
cbnolok Oct 3, 2024
a043502
Fixed compilation errors. Made more (easily) cross-platform the Abstr…
cbnolok Oct 3, 2024
9b81b0e
Refactored threads.h, removing useless matrioska interface class IThr…
cbnolok Oct 3, 2024
f28983e
Updated .clang-format/tidy.
cbnolok Oct 3, 2024
03ce5f6
Added CSString::SetValFalse/True to have a unified way of setting 0 o…
cbnolok Oct 4, 2024
08db71d
Fixed status updates to client not happening if the death process was…
cbnolok Oct 4, 2024
17ccf65
Refactored Windows SEH handling.
cbnolok Oct 4, 2024
af6516e
Fixed Windows compilation warning on Debug build, refactored _MAX_PATH.
cbnolok Oct 5, 2024
8643b0b
More refactoring, removed some macros from os_unix.h, renamed to uppe…
cbnolok Oct 5, 2024
e194ba7
Fixed path concat regression and fixed come cmake options being loade…
cbnolok Oct 7, 2024
621c62d
Fixed settings DIR and FLAGS not sending a full client update, minor …
cbnolok Oct 13, 2024
8d57444
Add @petrelease trigger (#1302)
Jhobean Oct 14, 2024
9703cef
Fix Typo error on Call Stack (#1308)
Jhobean Oct 14, 2024
f051889
Registration of Packet 0xBE (#1304)
GladieUO Oct 14, 2024
f93d918
Memory OnTick link char if not, the skill will not fail.
canerksk Oct 26, 2024
67de95e
The entity was jumping frames in flooded pet commands (come, guard)
canerksk Oct 26, 2024
6d27afb
ITEMMEMORYEQUIP is not triggered in many default memories.
canerksk Nov 8, 2024
b231c12
bank hear fix (#1332)
canerksk Nov 27, 2024
35f665f
Added NOREJOIN tag for corpses (#1318)
canerksk Nov 27, 2024
69302c6
Fixed MacOS compilation error
cbnolok Nov 27, 2024
8cff3e0
RANGE is complete for skills with distance query
canerksk Nov 27, 2024
d1deacf
Merge branch 'dev' into skill-range
raydienull Dec 2, 2024
909fd6a
Merge pull request #1338 from canerksk/skill-range
raydienull Dec 2, 2024
e04b8c3
Merge branch 'dev' into mini-fixes
raydienull Dec 2, 2024
e488b8a
Merge pull request #1326 from canerksk/mini-fixes
raydienull Dec 2, 2024
bb06831
Merge pull request #1339 from Sphereserver/dev
raydienull Dec 2, 2024
81a1508
Add support for delay explosion spell
raydienull Dec 2, 2024
3faad4d
Add T_FLETCHING type to open bowcraft menu
raydienull Dec 2, 2024
3dccbd7
t_multi_addon redeed fix (#1314)
GladieUO Dec 3, 2024
4b5ed07
New trigger @HitReactive (#1317)
canerksk Dec 3, 2024
172bbae
Mount Ceiling Check Fix (#1340)
DavideRei Dec 3, 2024
072659f
Chat system crash fix (Empty Chatname)
canerksk Dec 4, 2024
29e9ddc
Merge pull request #1343 from canerksk/chat-crashfix
raydienull Dec 4, 2024
20da698
Merge pull request #1344 from Sphereserver/dev
raydienull Dec 4, 2024
92c8fdc
Update README.md
Jhobean Dec 5, 2024
933af1c
Merge pull request #1349 from Jhobean/patch-1
raydienull Dec 5, 2024
506838a
Added new local variable in WOPSYSTEM LOCAL.WOPTalkMode and ini setti…
canerksk Dec 6, 2024
17e2054
Update sphere.ini WOP default
Jhobean Dec 8, 2024
d9bfa15
Char tick update workaround
DavideRei Dec 11, 2024
4db2d5e
Merge pull request #1356 from Sphereserver/dev
raydienull Dec 13, 2024
170673f
Merge pull request #1355 from DavideRei/dev
raydienull Dec 13, 2024
6a036d5
Merge pull request #1353 from Jhobean/patch-1
raydienull Dec 13, 2024
fd9d3b2
Reset Link when set empty
DavideRei Dec 29, 2024
ebf4761
Update sphere.ini
canerksk Dec 29, 2024
6971ff1
First 2025 Commit
Jhobean Jan 1, 2025
95011cf
Merge pull request #1363 from DavideRei/master
raydienull Jan 7, 2025
fafd47d
Merge branch 'master' into patch-1
raydienull Jan 7, 2025
8ccb640
Merge pull request #1364 from canerksk/patch-1
raydienull Jan 7, 2025
fdea61d
Fixed NPC FLEE action
DavideRei Jan 8, 2025
6dd376e
Merge pull request #1367 from DavideRei/master
raydienull Jan 16, 2025
b6430d1
Merge pull request #1365 from Jhobean/patch-3
raydienull Jan 16, 2025
f8b5b40
Add a warning line when an item is delete on save
Jhobean Jan 20, 2025
b0cdb39
Update sphereCrypt.ini (#1354)
Jhobean Jan 21, 2025
32e14a6
Merge pull request #1372 from Jhobean/patch-1
raydienull Jan 28, 2025
b48c0ea
Github workflows ignore .txt and .md files
cbnolok Jan 16, 2025
0f1baa6
Fixed: SQLite UTF8 strings handling in linux.
cbnolok Oct 18, 2024
7761858
Fixed some const-correctness violations, changed every ResDisp method…
cbnolok Oct 18, 2024
36ca3bd
Reworked worldobjs ticking lists to use vectors.
cbnolok Oct 19, 2024
f20a80c
Set nonblocking input if not running inside a terminal into linux
cbnolok Jan 30, 2025
daa4d5f
cleanup
cbnolok Jan 30, 2025
14cf3dc
More CWorldTicker cleanup, removed some redundant tick list add ops.
cbnolok Feb 3, 2025
5354125
Moving pre-allocated string buffers from static to dynamic allocatio…
cbnolok Feb 6, 2025
d2b0c88
Reducing binary size on non-Windows OSes, by stripping unused symbols…
cbnolok Feb 6, 2025
c2f30f4
Fixed: @(Item)Step trigger not instantly firing. Issue #1366
cbnolok Feb 6, 2025
703630a
Fixed Issue #1362: Crash during startup garbage collector when spawne…
cbnolok Feb 6, 2025
23a2d79
Fixed Issue #1307: Crash on boot if an NPC is destroyed in the middle…
cbnolok Feb 6, 2025
0b19f79
Moved fixed GCC/Clang compilation flags to separate cmake files. Fixed a
cbnolok Feb 6, 2025
f100c43
Merge pull request #1377 from Sphereserver/dev
cbnolok Feb 14, 2025
2a129d5
common/CScriptObj: use posix_spawn() instead of vfork()/execlp()
MaxKellermann Jan 13, 2025
6bac383
.github/workflows: merge adjacent "apt install"
MaxKellermann Jan 21, 2025
4b05fc7
.github/workflows: use "apt-get" instead of "apt"
MaxKellermann Jan 21, 2025
b06a46e
.github/workflows/build_linux_*: use ccache to speed up builds
MaxKellermann Jan 21, 2025
390f8ff
.github/workflows: start ninja with the "-C" option
MaxKellermann Jan 21, 2025
4932928
src/common/CScriptObj: do not declare `environ` on Windows
MaxKellermann Feb 14, 2025
6f59cff
.github/workflows/build*: pass "-v" to ninja
MaxKellermann Feb 14, 2025
aff7f58
.github/workflows/build_linux*: configure ccache sloppiness for PCH
MaxKellermann Feb 14, 2025
8ad988a
.github/workflows/build_linux*: add GCC option "-fpch-preprocess"
MaxKellermann Feb 14, 2025
43ca74b
Renamed CMake flags CXX_FLAGS_EXTRA and CMAKE_EXE_LINFER_FLAGS_EXTRA
cbnolok Feb 15, 2025
cd16bcc
cmake: add `-fvisibility=hidden`
MaxKellermann Feb 14, 2025
5a9b918
cmake: link with `--gc-sections`
MaxKellermann Feb 14, 2025
08a1554
Merge pull request #1379 from MaxKellermann/ninja_v
cbnolok Feb 17, 2025
1650996
PR #1361 - Added: Add OpenDoorMacro and World Search Distance as Loca…
cbnolok Feb 28, 2025
d9c7201
- Fixed: failing assertion if targeting a non-corpse object when cast…
cbnolok Feb 28, 2025
545a92a
Reduced loop count limit for recursive NPC get owner and hostility me…
cbnolok Mar 2, 2025
e4faeb8
Fixed: spiderwebs accumulating in sleeping sector (Issue #1249)
cbnolok Mar 5, 2025
0b07ac7
Fixed spiderwebs not decaying if created by a char temporarily walkin…
cbnolok Mar 6, 2025
1344f98
Added more non-MSVC compiler warnings.
cbnolok Mar 9, 2025
61e4038
Add some nodiscard and comments to a couple of methods.
cbnolok Mar 9, 2025
0721f68
Fixed: _CanTick doing also on CChar some checks meant only for CItem
cbnolok Mar 11, 2025
8a72f26
Added: log message with informations about the newly created object, …
cbnolok Mar 11, 2025
9045476
Added ARCH_32 and 64 macros. Reordered stypecast.h inclusion in common.h
cbnolok Mar 13, 2025
67569d0
CSRand: optimized mersenne-twister calls by simply initializing once …
cbnolok Mar 13, 2025
016aa07
Fixes for ItemTimers=1.
cbnolok Mar 15, 2025
e9e5cd7
Fixed typo
cbnolok Mar 15, 2025
5db37f1
Merge pull request #1383 from Sphereserver/dev
raydienull Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
130 changes: 71 additions & 59 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,34 +1,44 @@
# Based on LLVM style with C++20 support
BasedOnStyle: LLVM
Language: Cpp
Standard: c++20

# Tab and indent settings
TabWidth: 4
IndentWidth: 4
UseTab: Never
ColumnLimit: 160

# Text line management
#LineEndingStyle: LF
#MaxEmptyLinesToKeep: 3
MaxEmptyLinesToKeep: 2
InsertNewlineAtEOF: true

##-- Alignment
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: false
# Alignment settings
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
#AlignEscapedNewlinesLeft: false
AlignTrailingComments: true

#AlignConsecutiveTableGenDefinitionColons:
# Enabled: true
# AcrossEmptyLines: true
# AcrossComments: false
AlignEscapedNewlines: Left
AlignTrailingComments:
Kind: Always
OverEmptyLines: 1
DerivePointerAlignment: false
PointerAlignment: Right

##-- Single line statements
# Single-line statements settings
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: false

##-- Braces
BreakBeforeBraces: Custom #Allman
# Braces and wrapping settings
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: false
Expand All @@ -47,76 +57,78 @@ BraceWrapping:
SplitEmptyNamespace: false
Cpp11BracedListStyle: false

##-- Line breaks
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
# Line breaks and wrapping settings
#AllowAllParametersOfDeclarationOnNextLine: true
#AllowBreakBeforeNoexceptSpecifier: OnlyWithParen
AlwaysBreakAfterDefinitionReturnType: None # Keep return type on the same line if possible
AlwaysBreakAfterReturnType: None # Default value
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BreakAfterJavaFieldAnnotations: false
BreakBeforeBinaryOperators: None
BreakAfterAttributes: Always
BreakBeforeBinaryOperators: None # Default value: No line break before binary operators
BreakBeforeConceptDeclarations: Always
BreakConstructorInitializers: AfterColon
#BreakInheritanceList: AfterColon
BreakBeforeTernaryOperators: false
BreakBeforeTernaryOperators: false # Default value
BreakConstructorInitializersBeforeComma: true
BreakStringLiterals: false
#BreakInheritanceList: AfterColon
BreakStringLiterals: false # Default value
PackConstructorInitializers: NextLineOnly
PenaltyReturnTypeOnItsOwnLine: 200 # Prefer keeping return type on the same line if possible

##-- Indentation
# Indentation settings
AccessModifierOffset: -4
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentPPDirectives: AfterHash
IndentWrappedFunctionNames: false
LambdaBodyIndentation: Signature
NamespaceIndentation: Inner

##-- Spaces in/between statements/etc
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false
# Spaces around statements settings
SpaceAfterCStyleCast: false # Default value
SpaceAfterTemplateKeyword: false # Default value
#SpaceAroundPointerQualifiers: Left
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceInEmptyParentheses: false # Default value
SpacesInAngles: false # Default value
SpacesInCStyleCastParentheses: false # Default value
SpacesInContainerLiterals: false # Default value
SpacesInParentheses: false # Default value
SpacesInSquareBrackets: false # Default value

##-- Misc
AllowAllParametersOfDeclarationOnNextLine: true
AccessModifierOffset: -4
BinPackArguments: false
BinPackParameters: false
BreakAfterAttributes: Always
ExperimentalAutoDetectBinPacking: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
DisableFormat: false
InsertNewlineAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: false
ReflowComments: false
# Macros settings
#MacroBlockBegin: [regex -> EXC_TRY...]
#MacroBlockEnd:
#StatementMacros: [-> ASSERT?]

# Scopes settings
FixNamespaceComments: true
ShortNamespaceLines: 2

# Miscellaneous settings
SeparateDefinitionBlocks: Always
ReflowComments: false

#-- Include order
#IncludeIsMainRegex: '$?'
# Include order
#IncludeBlocks: Regroup
#IncludeIsMainRegex: '$?'
IncludeCategories:
#TODO: main include!
# Headers in "" with .h extension.
- Regex: '"([A-Za-z0-9\/-_])+\.h"'
Priority: 1
# Headers in "" with .hpp extension.
- Regex: '"([A-Za-z0-9\/-_])+\.hpp"'
Priority: 2

# Headers in <> with .h extension.
- Regex: '<([A-Za-z0-9\/-_])+\.h>'
Priority: 10
# Headers in <> with .hpp extension.
- Regex: '<([A-Za-z0-9\/-_])+\.hpp>'
Priority: 20
# Headers in <> without extension.
- Regex: '<([A-Za-z0-9\/-_])+>'
Priority: 30
SortIncludes: false #CaseSensitive
- Regex: '"([A-Za-z0-9\/-_])+\.h"'
Priority: 1
- Regex: '"([A-Za-z0-9\/-_])+\.hpp"'
Priority: 2
- Regex: '<([A-Za-z0-9\/-_])+\.h>'
Priority: 10
- Regex: '<([A-Za-z0-9\/-_])+\.hpp>'
Priority: 20
- Regex: '<([A-Za-z0-9\/-_])+>'
Priority: 30
SortIncludes: false
82 changes: 82 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
ExcludeHeaderFilterRegex: ^.*(lib\/).*

Checks: >
#-*,
# Enable groups:
bugprone-*,
cppcoreguidelines-*,
clang-analyzer-*,
##hicpp-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
# Disable specific checks/warnings:
-clang-analyzer-security.insecureAPI.strcpy,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-goto,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-no-malloc,
-cppcoreguidelines-init-variables, # false positives
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-prefer-member-initializer,
-cppcoreguidelines-pro-bounds-array-pointer-decay,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-type-const-cast, # we have some instances, and we should remove them...
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-pro-type-union-access,
##-hicpp-use-auto, #duplicate
##-hicpp-braces-around-statements,
##-hicpp-vararg, #duplicate
-misc-include-cleaner,
-modernize-avoid-c-arrays,
-modernize-use-auto,
-modernize-use-trailing-return-type,
-modernize-loop-convert,
-readability-braces-around-statements,
-readability-delete-null-pointer,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-identifier-naming,
-readability-implicit-bool-conversion,
-readability-magic-numbers,
-readability-misleading-indentation, # to be enabled after the source is properly formatted
-readability-simplify-boolean-expr,
-readability-uppercase-literal-suffix,
##-misc-non-private-member-variables-in-classes,
##-readability-named-parameter,
##-readability-braces-around-statements,
##-readability-magic-numbers

# Turn all the warnings from the checks above into errors.
#WarningsAsErrors: "*"

CheckOptions:
- key: 'clang-analyzer-core.NonNullParamChecker:assert_like_macro'
value: 'DEBUG_ASSERT,ASSERT,PERSISTANT_ASSERT'
- key: 'clang-analyzer-config:noreturn_function'
value: 'RaiseImmediateAbort,RaiseRecoverableAbort'
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
- { key: readability-identifier-naming.VariableCase, value: camelBack } # lower_case
- { key: readability-identifier-naming.PrivateMemberPrefix, value: m_ }
- { key: readability-identifier-naming.ProtectedMemberPrefix, value: m_ }
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
- { key: readability-identifier-naming.EnumConstantCase, value: UPPER_CASE}
#- { key: readability-identifier-naming.EnumConstantPrefix, value: k }
- { key: readability-identifier-naming.ScopedEnumConstantCase, value: CamelCase }
- { key: readability-identifier-naming.ScopedEnumConstantPrefix, value: k }
- { key: readability-identifier-naming.ConstexprVariableCase, value: CamelCase }
- { key: readability-identifier-naming.ConstexprVariablePrefix, value: k }
- { key: readability-identifier-naming.GlobalConstantCase, value: CamelCase }
- { key: readability-identifier-naming.GlobalConstantPrefix, value: k }
- { key: readability-identifier-naming.MemberConstantCase, value: CamelCase }
- { key: readability-identifier-naming.MemberConstantPrefix, value: k }
- { key: readability-identifier-naming.StaticConstantCase, value: CamelCase }
- { key: readability-identifier-naming.StaticConstantPrefix, value: k }
20 changes: 20 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CompileFlags:
Add:
# Exclude the following folders from the source code analysis.
- -I!.codelite
- -I!.ctagsd
- -I!.git
- -I!.github
- -I!.kdev4
- -I!.vscode
- -I!build
- -I!cmake
- -I!lib
- -I!utilities

# If:
# PathMatch: '.*/src/common/common\.h'
# Diagnostics:
# Suppress: ['-Wunused-include-directive']

# TODO: disable clazy-non-pod-global-static
14 changes: 10 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ root = true
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Optional: git will commit as lf, this will only affect local files
end_of_line = lf

[*.txt]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.md]
trim_trailing_whitespace = false

Expand All @@ -18,15 +24,15 @@ indent_style = tab

[*.{py,yml,sh,cmake}]
indent_style = space
indent_size = 2
indent_size = 4

[*.{py,yml,sh,cmake}.in]
indent_style = space
indent_size = 2
indent_size = 4

[CMakeLists.txt]
indent_style = space
indent_size = 2
indent_size = 4

[*.{c,h,cpp,cxx,hpp}]
charset = utf-8
Expand Down
12 changes: 12 additions & 0 deletions .gersemirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/BlankSpruce/gersemi/master/gersemi/configuration.schema.json

cache: false
color: false
definitions: []
indent: 4
line_length: 120
list_expansion: favour-inlining
quiet: false
unsafe: false
warn_about_unknown_commands: false
workers: 4
11 changes: 9 additions & 2 deletions .github/workflows/build_aux_files.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: Create/upload auxiliary files to the release.

on:
- push
push:
branches:
- 'master'
- 'main'
- 'dev'
paths-ignore:
- '*.txt'
- '*.md'

jobs:
upload_github_release:
# Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches
if: contains(fromJson('["master", "main"]'), github.ref_name)
#if: contains(fromJson('["master", "main"]'), github.ref_name)

runs-on: ubuntu-latest
steps:
Expand Down
Loading
Loading