Anders Jenbo
df82616df1
clang-tidy: auto fix headers for DiabloUI
7 months ago
Gleb Mazovetskiy
cfdade5f37
Simplify txtdata parsing with a helper class
2 years ago
Gleb Mazovetskiy
3ac2f05671
Disable a couple of clang-tidy checks
...
These are very noisy and not particularly helpful.
2 years ago
Gleb Mazovetskiy
966e66e88e
.clang-tidy: -misc-non-private-member-variables-in-classes
...
Following the discussion in the chat
4 years ago
Gleb Mazovetskiy
3d5307e3bd
.clang-tidy: Allow single-char loop variables
...
x, y, i, j, etc
4 years ago
ephphatha
64a2c41b2c
Set clang-tidy config for MethodCase option
...
Previously this was falling back to FunctionCase, leading to inconsistent casing of class methods throughout the codebase. Applied to Item as an example.
4 years ago
Anders Jenbo
d77a61461e
Adjust clang-tidy to where Android Studio reads it correctly
5 years ago
Anders Jenbo
d523fc1e81
Cleanups
5 years ago
Anders Jenbo
372b1dcba2
Clang-tidy: readability-identifier-naming.MemberCase: camelBack
5 years ago
Anders Jenbo
db3d1d4054
Revert and disable readability-convert-member-functions-to-static
...
This breaks on GCC 6.3
5 years ago
Gleb Mazovetskiy
f9f301b054
🚚 engine.h: Extract `Point`, `Direction`, `clamp`
...
`engine.h` is getting quite bloated. Moves this code to their own files.
5 years ago
Gleb Mazovetskiy
18967ce5ff
🎉 render.cpp: Do not render out-of-bounds
...
This is part of the work to allow us to eliminate buffer padding.
As this is a hotspot, we have 4 separate functions for each non-square
primitive, resulting in quite a bit of code:
1. Unclipped ("Full")
2. Vertical-only clip
3. Vertical + Left clip
4. Vertical + Right clip
FPS at 640x480: 1420 -> 1530
5 years ago
Gleb Mazovetskiy
46a5dc147b
🔨 Restore GCC 5 compatibility
...
We can support this much older compiler with just these few minor
changes.
5 years ago
Anders Jenbo
2969b80163
🎨 Run readability-identifier-naming on all src sub-folders
5 years ago
Anders Jenbo
f8e3672469
♻️ Fully apply clang-tidy rules to a few files
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Gleb Mazovetskiy
ca1786828b
.clang-tidy: Document run-clang-tidy
...
Turns out clang-tidy comes with a Python script that makes running
it very easy and parallelizes the checks.
https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
5 years ago
Gleb Mazovetskiy
3fb2d21f3a
Add a .clang-tidy config
...
1. Provides additional warnings and **can apply some automatic fixes**.
2. Suggest consistent identifier naming based on the Google Style Guide.
5 years ago