Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cpp-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Maul
cpp-project
Commits
fa715493
Commit
fa715493
authored
5 months ago
by
David Maul
Browse files
Options
Downloads
Patches
Plain Diff
add .clang-tidy
parent
c5a9fd3b
No related branches found
No related tags found
2 merge requests
!29
Merge main into box2d to implement physics
,
!26
Add support for clang-tidy
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.clang-tidy
+39
-0
39 additions, 0 deletions
.clang-tidy
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
README.md
+9
-0
9 additions, 0 deletions
README.md
with
50 additions
and
0 deletions
.clang-tidy
0 → 100644
+
39
−
0
View file @
fa715493
---
Checks: >
bugprone-*,
cert-*,
clang-analyzer-*,
cppcoreguidelines-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-modernize-use-trailing-return-type,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-avoid-magic-numbers,
-readability-magic-numbers
WarningsAsErrors: ''
HeaderFilterRegex: 'src/game/.*'
FormatStyle: file
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: camelBack
- key: readability-identifier-naming.PrivateMemberPrefix
value: m_
- key: readability-identifier-naming.MethodCase
value: camelBack
- key: readability-identifier-naming.ParameterCase
value: camelBack
- key: readability-identifier-naming.VariableCase
value: camelBack
- key: readability-identifier-naming.ConstantCase
value: UPPER_CASE
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
- key: performance-move-const-arg.CheckTriviallyCopyableMove
value: false
- key: readability-function-cognitive-complexity.Threshold
value: 25
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitignore
+
2
−
0
View file @
fa715493
...
@@ -56,5 +56,7 @@ coverage/
...
@@ -56,5 +56,7 @@ coverage/
docs/generated/
docs/generated/
clang-tidy-warnings.txt
bin/
bin/
lib/
lib/
This diff is collapsed.
Click to expand it.
README.md
+
9
−
0
View file @
fa715493
# Advanced Wars
# Advanced Wars
## clang-tidy
-
Um
`clang-tidy`
für eine einzelne Datei (z.B.
`main.cpp`
) auszuführen:
`clang-tidy src/game/main.cpp -header-filter="src/game/main\.cpp" -p build/`
-
Um
`clang-tidy`
für das ganze Projekt auszuführen und die Warnings in die Datei
`clang-tidy-warnings.txt`
zu schreiben:
`find src/game -name '*.cpp' -o -name '*.hpp' | xargs clang-tidy -header-filter="src/game/.*" -p build/ 1> clang-tidy-warnings.txt`
## Build-Anleitung
## Build-Anleitung
### Linux/MacOS
### Linux/MacOS
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment