# clang-format config for virtualjaguar-libretro.
#
# DELIBERATELY MINIMAL.  The upstream codebase has mixed brace style
# AND mixed indent (tabs in src/tom/*, spaces in libretro.c, Allman
# braces in src/jerry/jerry.h, K&R elsewhere) per-file.  No single
# style works.  This config only enforces things that are universally
# consistent across the tree: don't sort includes, don't reflow long
# lines, don't touch preprocessor indent.  Brace placement, spacing,
# and indent style are NOT enforced.
#
# The CI check (`clang-format.yml`) runs clang-format-diff on changed
# lines and posts suggestions to the job summary -- it does NOT fail
# the build.  Use it as a "consider this" prompt, not a gate.

BasedOnStyle: LLVM
Language: Cpp

# Don't reflow long lines -- author makes wrapping decisions.
ColumnLimit: 0

# libretro / UAE include order is hand-tuned; don't reorder.
SortIncludes: false
IncludeBlocks: Preserve

# Don't touch preprocessor indent -- breaks ifdef-guarded code.
IndentPPDirectives: None

# Tolerate both tab and space indent without rewriting.
UseTab: ForIndentation
TabWidth: 4
IndentWidth: 4

# Don't reformat comments (preserves the upstream's ASCII art).
ReflowComments: false
