Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
304255e
Update sphereCrypt.ini (#1297)
Jhobean Sep 25, 2024
3028138
Add @petrelease trigger
Jhobean Oct 5, 2024
6baa163
Add @DisplayName to be able control the name other player see.
Jhobean Oct 10, 2024
4183b84
Add changelog and fix string bug
Jhobean Oct 11, 2024
56d5f1f
Change the const_cast by removing const
Jhobean Oct 11, 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
a4628f5
Merge branch 'dev' into Dev_Resistance
Jhobean Oct 13, 2024
2e211c2
Merge branch 'DisplayName' into Dev_Resistance
Jhobean Oct 13, 2024
a3f9960
Merge remote-tracking branch 'Jhobean/petRel' into Dev_Resistance
Jhobean Oct 13, 2024
a07fb02
Merge branch 'dev' into DisplayName
Jhobean Oct 13, 2024
8d57444
Add @petrelease trigger (#1302)
Jhobean Oct 14, 2024
ff1b81f
Merge branch 'dev' into DisplayName
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
6cabb6a
Add trigger on tooltip
Jhobean Oct 16, 2024
2799c21
Merge branch 'dev' into DisplayName
Jhobean Oct 16, 2024
facf2c9
Always new tooltips for player
Jhobean Oct 16, 2024
2742ba2
Ajout halfelin
Jhobean Nov 10, 2024
4ad22b6
Merge pull request #6 from Cryptonite-UO/Ajout_halfelin
Jhobean Nov 10, 2024
626f67c
Merge branch 'DisplayName' into Dev_Resistance
Jhobean Nov 10, 2024
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
127 changes: 69 additions & 58 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
# 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,77 +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
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ Checks: >
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 }
Expand Down
3 changes: 3 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CompileFlags:
Add:
# Exclude the following folders from the source code analysis.
- -I!.codelite
- -I!.ctagsd
- -I!.git
Expand All @@ -15,3 +16,5 @@ CompileFlags:
# PathMatch: '.*/src/common/common\.h'
# Diagnostics:
# Suppress: ['-Wunused-include-directive']

# TODO: disable clazy-non-pod-global-static
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Ignore folders
/.cache
/.git
/.vscode
*.vshistory*
Expand Down
Loading