-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,063 additions
and
884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
BasedOnStyle: Google | ||
ColumnLimit: 120 | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: Always | ||
ReflowComments: false | ||
AccessModifierOffset: -4 | ||
IncludeBlocks: Preserve | ||
BreakBeforeBraces: Allman | ||
BreakBeforeTernaryOperators: true | ||
BreakBeforeBinaryOperators: NonAssignment | ||
SpaceInEmptyBlock: true | ||
SpacesBeforeTrailingComments: 1 | ||
SpaceAfterTemplateKeyword: true | ||
IndentAccessModifiers: false | ||
IndentRequiresClause: false | ||
IndentCaseLabels: false | ||
IndentPPDirectives: BeforeHash | ||
InsertNewlineAtEOF: true | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
PackConstructorInitializers: BinPack | ||
NamespaceIndentation: All | ||
Cpp11BracedListStyle: false | ||
FixNamespaceComments: false | ||
AlignAfterOpenBracket: DontAlign | ||
AlignOperands: false | ||
AllowShortLoopsOnASingleLine: false | ||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortFunctionsOnASingleLine: Empty | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowAllArgumentsOnNextLine: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Checks: > | ||
-* | ||
clang-analyzer-* | ||
WarningsAsErrors: "*" | ||
FormatStyle: file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 4 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"version": 7, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 27, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "windows", | ||
"generator": "MinGW Makefiles", | ||
"cacheVariables": { | ||
"CMAKE_TOOLCHAIN_FILE": ".vcpkg/windows.cmake", | ||
"COD4X": true | ||
} | ||
}, | ||
{ | ||
"name": "linux", | ||
"cacheVariables": { | ||
"CMAKE_TOOLCHAIN_FILE": ".vcpkg/linux.cmake", | ||
"COD4X": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
add_custom_target(clang-tidy | ||
COMMAND find . -type f \( -name '*.c' -o -name '*.h' \) -not -path './build/*' -exec clang-tidy --config-file=.clang-tidy {} + | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) | ||
|
||
add_custom_target(clang-format | ||
COMMAND find . -type f \( -name '*.c' -o -name '*.h' \) -not -path './build/*' -exec clang-format -style=file -i --verbose {} + | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) | ||
|
||
set_target_properties(clang-tidy PROPERTIES FOLDER Clang) | ||
set_target_properties(clang-format PROPERTIES FOLDER Clang) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#pragma once | ||
#define COD4X | ||
|
||
#ifndef PLUGIN_HANDLER_VERSION_MAJOR | ||
#include <plugin_declarations.h> | ||
#endif | ||
|
||
#define CHECK_UNSUPPORTED(condition) \ | ||
if (CGSC_UnsupportedMessage(condition, "CGSC: This feature is unsupported in this version.")) \ | ||
{ \ | ||
Scr_AddUndefined(); \ | ||
return; \ | ||
} | ||
|
||
#include <version.h> | ||
#include <scr_vm.h> | ||
#include <scr_vm_functions.h> | ||
#include <q_shared.h> | ||
|
||
#undef ASSERT | ||
#pragma once | ||
#define COD4X | ||
|
||
#ifndef PLUGIN_HANDLER_VERSION_MAJOR | ||
#include <plugin_declarations.h> | ||
#endif | ||
|
||
#define CHECK_UNSUPPORTED(condition) \ | ||
if (CGSC_UnsupportedMessage(condition, "CGSC: This feature is unsupported in this version.")) \ | ||
{ \ | ||
Scr_AddUndefined(); \ | ||
return; \ | ||
} | ||
|
||
#include <q_shared.h> | ||
#include <scr_vm.h> | ||
#include <scr_vm_functions.h> | ||
#include <version.h> | ||
|
||
#undef ASSERT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
#include <greatest.h> | ||
GREATEST_MAIN_DEFS(); | ||
|
||
extern SUITE(Suite_utils); | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
GREATEST_MAIN_BEGIN(); | ||
|
||
RUN_SUITE(Suite_utils); | ||
|
||
GREATEST_MAIN_END(); | ||
} | ||
#include <greatest.h> | ||
|
||
GREATEST_MAIN_DEFS(); | ||
|
||
extern SUITE(Suite_utils); | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
GREATEST_MAIN_BEGIN(); | ||
|
||
RUN_SUITE(Suite_utils); | ||
|
||
GREATEST_MAIN_END(); | ||
} |
Oops, something went wrong.