diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /.clang-tidy | |
Diffstat (limited to '.clang-tidy')
| -rw-r--r-- | .clang-tidy | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..ffc37fe --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,46 @@ +Checks: > + -readability-identifier-naming + -bugprone-* + -performance-* + -modernize-* + -clang-analyzer-* + -misc-* + -cppcoreguidelines-* + +CheckOptions: + # ---------- CLASS NAMES ---------- + - key: readability-identifier-naming.ClassCase + value: CamelCase + - key: readability-identifier-naming.ClassPrefix + value: C + + # ---------- MEMBER VARIABLES ---------- + - key: readability-identifier-naming.MemberCase + value: CamelCase + - key: readability-identifier-naming.MemberPrefix + value: m_ + # Allows suffixes like m_fFlySpeed, m_bCanFly, etc. + - key: readability-identifier-naming.MemberIgnoredRegex + value: '^m_[fbisacptr]*(.*)$' + + # ---------- FUNCTION PARAMETERS ---------- + - key: readability-identifier-naming.ParameterCase + value: CamelCase + - key: readability-identifier-naming.ParameterPrefix + value: p + + # ---------- ENUMS & STRUCTS must be PascalCase ---------- + - key: readability-identifier-naming.EnumCase + value: CamelCase + - key: readability-identifier-naming.StructCase + value: CamelCase + + # ---------- GLOBAL & STATIC CONSTANTS ---------- + - key: readability-identifier-naming.GlobalConstantPrefix + value: g_ + - key: readability-identifier-naming.GlobalConstantCase + value: UPPER_CASE + +WarningsAsErrors: '*' +FormatStyle: none + |