Skip to content

Commit acea90d

Browse files
authored
Initial commit
0 parents  commit acea90d

20 files changed

+1483
-0
lines changed

.clang-format

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
BasedOnStyle: LLVM
2+
AccessModifierOffset: -4
3+
AlignAfterOpenBracket: BlockIndent
4+
AlignArrayOfStructures: Left
5+
AlignConsecutiveDeclarations:
6+
Enabled: true
7+
AcrossEmptyLines: false
8+
AcrossComments: false
9+
AlignConsecutiveAssignments:
10+
Enabled: true
11+
AcrossEmptyLines: false
12+
AcrossComments: false
13+
AlignCompound: true
14+
PadOperators: true
15+
AlignConsecutiveMacros:
16+
Enabled: true
17+
AcrossEmptyLines: false
18+
AcrossComments: false
19+
AllowAllParametersOfDeclarationOnNextLine: false
20+
AllowAllArgumentsOnNextLine: false
21+
AlignOperands: AlignAfterOperator
22+
AlignConsecutiveBitFields:
23+
Enabled: true
24+
AcrossEmptyLines: false
25+
AcrossComments: false
26+
AllowShortLambdasOnASingleLine: All
27+
AllowShortBlocksOnASingleLine: Empty
28+
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
29+
AllowShortLoopsOnASingleLine: true
30+
AlwaysBreakAfterDefinitionReturnType: None
31+
AlwaysBreakTemplateDeclarations: 'Yes'
32+
BinPackArguments: false
33+
BinPackParameters: false
34+
BreakBeforeBraces: Custom
35+
BreakBeforeBinaryOperators: NonAssignment
36+
ColumnLimit: 120
37+
CommentPragmas: '^ IWYU pragma:'
38+
ConstructorInitializerIndentWidth: 0
39+
IndentWidth: 4
40+
Language: Cpp
41+
MaxEmptyLinesToKeep: 2
42+
PackConstructorInitializers: CurrentLine
43+
PointerAlignment: Left
44+
TabWidth: 4
45+
UseTab: Never
46+
SortIncludes: CaseSensitive

.clang-tidy

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
---
2+
Checks: '-*,
3+
bugprone-argument-comment,
4+
bugprone-assert-side-effect,
5+
bugprone-bad-signal-to-kill-thread,
6+
bugprone-branch-clone,
7+
bugprone-copy-constructor-init,
8+
bugprone-dangling-handle,
9+
bugprone-dynamic-static-initializers,
10+
bugprone-fold-init-type,
11+
bugprone-forward-declaration-namespace,
12+
bugprone-forwarding-reference-overload,
13+
bugprone-inaccurate-erase,
14+
bugprone-incorrect-roundings,
15+
bugprone-integer-division,
16+
bugprone-lambda-function-name,
17+
bugprone-macro-parentheses,
18+
bugprone-macro-repeated-side-effects,
19+
bugprone-misplaced-operator-in-strlen-in-alloc,
20+
bugprone-misplaced-pointer-arithmetic-in-alloc,
21+
bugprone-misplaced-widening-cast,
22+
bugprone-move-forwarding-reference,
23+
bugprone-multiple-statement-macro,
24+
bugprone-no-escape,
25+
bugprone-not-null-terminated-result,
26+
bugprone-parent-virtual-call,
27+
bugprone-posix-return,
28+
bugprone-sizeof-container,
29+
bugprone-sizeof-expression,
30+
bugprone-spuriously-wake-up-functions,
31+
bugprone-string-constructor,
32+
bugprone-string-integer-assignment,
33+
bugprone-string-literal-with-embedded-nul,
34+
bugprone-suspicious-enum-usage,
35+
bugprone-suspicious-include,
36+
bugprone-suspicious-memory-comparison,
37+
bugprone-suspicious-memset-usage,
38+
bugprone-suspicious-missing-comma,
39+
bugprone-suspicious-semicolon,
40+
bugprone-suspicious-string-compare,
41+
bugprone-swapped-arguments,
42+
bugprone-terminating-continue,
43+
bugprone-throw-keyword-missing,
44+
bugprone-too-small-loop-variable,
45+
bugprone-undefined-memory-manipulation,
46+
bugprone-undelegated-constructor,
47+
bugprone-unhandled-self-assignment,
48+
bugprone-unused-raii,
49+
bugprone-unused-return-value,
50+
bugprone-use-after-move,
51+
bugprone-virtual-near-miss,
52+
cert-dcl21-cpp,
53+
cert-dcl58-cpp,
54+
cert-err34-c,
55+
cert-err52-cpp,
56+
cert-err60-cpp,
57+
cert-flp30-c,
58+
cert-msc50-cpp,
59+
cert-msc51-cpp,
60+
cert-str34-c,
61+
cppcoreguidelines-interfaces-global-init,
62+
cppcoreguidelines-narrowing-conversions,
63+
cppcoreguidelines-pro-type-member-init,
64+
cppcoreguidelines-slicing,
65+
google-default-arguments,
66+
google-explicit-constructor,
67+
google-runtime-operator,
68+
hicpp-exception-baseclass,
69+
hicpp-multiway-paths-covered,
70+
misc-misplaced-const,
71+
misc-new-delete-overloads,
72+
misc-non-copyable-objects,
73+
misc-throw-by-value-catch-by-reference,
74+
misc-unconventional-assign-operator,
75+
misc-uniqueptr-reset-release,
76+
modernize-avoid-bind,
77+
modernize-concat-nested-namespaces,
78+
modernize-deprecated-headers,
79+
modernize-deprecated-ios-base-aliases,
80+
modernize-loop-convert,
81+
modernize-make-shared,
82+
modernize-make-unique,
83+
modernize-pass-by-value,
84+
modernize-raw-string-literal,
85+
modernize-redundant-void-arg,
86+
modernize-replace-auto-ptr,
87+
modernize-replace-disallow-copy-and-assign-macro,
88+
modernize-replace-random-shuffle,
89+
modernize-return-braced-init-list,
90+
modernize-shrink-to-fit,
91+
modernize-unary-static-assert,
92+
modernize-use-auto,
93+
modernize-use-bool-literals,
94+
modernize-use-emplace,
95+
modernize-use-equals-default,
96+
modernize-use-equals-delete,
97+
modernize-use-nodiscard,
98+
modernize-use-noexcept,
99+
modernize-use-nullptr,
100+
modernize-use-override,
101+
modernize-use-transparent-functors,
102+
modernize-use-uncaught-exceptions,
103+
mpi-buffer-deref,
104+
mpi-type-mismatch,
105+
openmp-use-default-none,
106+
performance-faster-string-find,
107+
performance-for-range-copy,
108+
performance-implicit-conversion-in-loop,
109+
performance-inefficient-algorithm,
110+
performance-inefficient-string-concatenation,
111+
performance-inefficient-vector-operation,
112+
performance-move-const-arg,
113+
performance-move-constructor-init,
114+
performance-no-automatic-move,
115+
performance-noexcept-move-constructor,
116+
performance-trivially-destructible,
117+
performance-type-promotion-in-math-fn,
118+
performance-unnecessary-copy-initialization,
119+
performance-unnecessary-value-param,
120+
portability-simd-intrinsics,
121+
readability-avoid-const-params-in-decls,
122+
readability-const-return-type,
123+
readability-container-size-empty,
124+
readability-delete-null-pointer,
125+
readability-deleted-default,
126+
readability-inconsistent-declaration-parameter-name,
127+
readability-make-member-function-const,
128+
readability-misleading-indentation,
129+
readability-misplaced-array-index,
130+
readability-non-const-parameter,
131+
readability-redundant-control-flow,
132+
readability-redundant-declaration,
133+
readability-redundant-function-ptr-dereference,
134+
readability-redundant-smartptr-get,
135+
readability-redundant-string-cstr,
136+
readability-redundant-string-init,
137+
readability-simplify-subscript-expr,
138+
readability-static-accessed-through-instance,
139+
readability-static-definition-in-anonymous-namespace,
140+
readability-string-compare,
141+
readability-uniqueptr-delete-release,
142+
readability-use-anyofallof'

.clangd

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Diagnostics:
2+
UnusedIncludes: Strict
3+
MissingIncludes: None
4+
Suppress:
5+
- "-Wmicrosoft-enum-forward-reference"
6+
- "-Wc++11-narrowing"
7+
- "-Wc++2b-extensions"
8+
- "-Wmicrosoft-cast"
9+
CompileFlags:
10+
Add:
11+
- "-ferror-limit=0"
12+
- '-D__FUNCTION__="dummy"'
13+
- '-D__clangd__'

.gitattributes

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
## https://github.com/gitattributes/gitattributes/blob/master/Common.gitattributes
2+
# Common settings that generally should always be used with your language specific settings
3+
4+
# Auto detect text files and perform LF normalization
5+
* text=auto
6+
7+
#
8+
# The above will handle all files NOT found below
9+
#
10+
11+
# Documents
12+
*.bibtex text diff=bibtex
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain
23+
*.md text diff=markdown
24+
*.mdx text diff=markdown
25+
*.tex text diff=tex
26+
*.adoc text
27+
*.textile text
28+
*.mustache text
29+
*.csv text eol=crlf
30+
*.tab text
31+
*.tsv text
32+
*.txt text
33+
*.sql text
34+
*.epub diff=astextplain
35+
36+
# Graphics
37+
*.png binary
38+
*.jpg binary
39+
*.jpeg binary
40+
*.gif binary
41+
*.tif binary
42+
*.tiff binary
43+
*.ico binary
44+
# SVG treated as text by default.
45+
*.svg text
46+
# If you want to treat it as binary,
47+
# use the following line instead.
48+
# *.svg binary
49+
*.eps binary
50+
51+
# Scripts
52+
*.bash text eol=lf
53+
*.fish text eol=lf
54+
*.sh text eol=lf
55+
*.zsh text eol=lf
56+
# These are explicitly windows files and should use crlf
57+
*.bat text eol=crlf
58+
*.cmd text eol=crlf
59+
*.ps1 text eol=crlf
60+
61+
# Serialisation
62+
*.json text
63+
*.toml text
64+
*.xml text
65+
*.yaml text
66+
*.yml text
67+
68+
# Archives
69+
*.7z binary
70+
*.gz binary
71+
*.tar binary
72+
*.tgz binary
73+
*.zip binary
74+
75+
# Text files where line endings should be preserved
76+
*.patch -text
77+
78+
#
79+
# Exclude files from exporting
80+
#
81+
82+
.gitattributes export-ignore
83+
.gitignore export-ignore
84+
.gitkeep export-ignore
85+
86+
87+
## https://github.com/gitattributes/gitattributes/blob/master/C%2B%2B.gitattributes
88+
# Sources
89+
*.c text diff=cpp
90+
*.cc text diff=cpp
91+
*.cxx text diff=cpp
92+
*.cpp text diff=cpp
93+
*.cpi text diff=cpp
94+
*.c++ text diff=cpp
95+
*.hpp text diff=cpp
96+
*.h text diff=cpp
97+
*.h++ text diff=cpp
98+
*.hh text diff=cpp
99+
100+
# Compiled Object files
101+
*.slo binary
102+
*.lo binary
103+
*.o binary
104+
*.obj binary
105+
106+
# Precompiled Headers
107+
*.gch binary
108+
*.pch binary
109+
110+
# Compiled Dynamic libraries
111+
*.so binary
112+
*.dylib binary
113+
*.dll binary
114+
115+
# Compiled Static libraries
116+
*.lai binary
117+
*.la binary
118+
*.a binary
119+
*.lib binary
120+
121+
# Executables
122+
*.exe binary
123+
*.out binary
124+
*.app binary
125+
126+
127+
## Project specific
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
title: "[Bug] "
4+
type: bug
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Describe the bug
9+
description: A clear and concise description of what the bug is.
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
attributes:
15+
label: To Reproduce
16+
description: Steps to reproduce the behavior.
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
attributes:
22+
label: Expected behavior
23+
description: A clear and concise description of what you expected to happen.
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
attributes:
29+
label: Screenshots
30+
description: If applicable, add screenshots to help explain your problem.
31+
32+
- type: input
33+
attributes:
34+
label: Platform
35+
description: The platform you are using. (e.g. Windows 10)
36+
37+
- type: input
38+
attributes:
39+
label: BDS Version
40+
description: The version of BDS you are using. (e.g. 1.20.32.1)
41+
42+
- type: input
43+
attributes:
44+
label: LeviLamina Version
45+
description: The version of LeviLamina you are using. (e.g. 1.0.0)
46+
47+
- type: input
48+
attributes:
49+
label: Version
50+
description: The version of the mod you are using. (e.g. 1.0.0)
51+
52+
- type: textarea
53+
attributes:
54+
label: Additional context
55+
description: Add any other context about the problem here.

0 commit comments

Comments
 (0)