1
0
mirror of https://github.com/projectatomic/rpm-ostree.git synced 2026-02-05 09:45:27 +01:00
Files
rpm-ostree/.clang-format
Jonathan Lebon d38cc867a7 tree: Fix formatting for GLNX_HASH_TABLE_FOREACH
In the clang reformatting change, we lost indentation of the bodies for
`GLNX_HASH_TABLE_FOREACH` macros because `clang-format` thinks it's a
function call-style macro. This can lead to misreading the code and
possibly cause bugs.

Thankfully, it has an option for declaring foreach-style macros. Use it
and reformat the whole tree.
2022-04-12 18:57:54 -04:00

6 lines
185 B
YAML

---
Language: Cpp
BasedOnStyle: GNU
ColumnLimit: 100
ForEachMacros: ['GLNX_HASH_TABLE_FOREACH', 'GLNX_HASH_TABLE_FOREACH_V', 'GLNX_HASH_TABLE_FOREACH_KV', 'GLNX_HASH_TABLE_FOREACH_IT']