---
# source/HotReload/src/c-api/.clang-tidy
#
# hot_reload.h's implementation (HotReloadApi.cpp) is Part II (C API)
# style -- snake_case, per style guide §13 -- even though it is a
# .cpp file living inside a C++ library. Copied from the repo-root
# c-api/.clang-tidy template (see that file's own header comment for
# the full explanation of how clang-tidy's directory-scoped config
# resolution makes this work); the sibling directory one level up
# (source/HotReload/src/) has no override of its own, so its Part I
# (C++) files keep inheriting the repo-root .clang-tidy's PascalCase/
# camelCase rules exactly as normal.
InheritParentConfig: true

Checks: >
  readability-identifier-naming,
  bugprone-exception-escape

CheckOptions:
  - key: readability-identifier-naming.FunctionCase
    value: lower_case
  - key: readability-identifier-naming.VariableCase
    value: lower_case
  - key: readability-identifier-naming.ParameterCase
    value: lower_case
  - key: readability-identifier-naming.LocalVariableCase
    value: lower_case

  - key: readability-identifier-naming.StructCase
    value: CamelCase
  - key: readability-identifier-naming.EnumCase
    value: CamelCase
  - key: readability-identifier-naming.EnumConstantCase
    value: UPPER_CASE

  - key: readability-identifier-naming.GlobalConstantCase
    value: UPPER_CASE
  - key: readability-identifier-naming.MacroDefinitionCase
    value: UPPER_CASE

  - key: readability-identifier-naming.GlobalVariableCase
    value: lower_case
  - key: readability-identifier-naming.GlobalVariablePrefix
    value: g_
  - key: readability-identifier-naming.StaticVariableCase
    value: lower_case
  - key: readability-identifier-naming.StaticVariablePrefix
    value: s_
