diff options
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 + |