upx/.clang-format

28 lines
731 B
Plaintext
Raw Permalink Normal View History

2024-03-08 18:52:44 +08:00
# vim:set ft=yaml ts=2 sw=2 et:
# Copyright (C) Markus Franz Xaver Johannes Oberhumer
# for clang-format-15.0.6 from https://github.com/upx/upx-stubtools/releases
2024-03-08 18:52:44 +08:00
#
# "Gofmt's style is nobody's favourite, but gofmt is everybody's favourite." --Rob Pike
2021-01-05 02:07:17 +08:00
---
BasedOnStyle: LLVM
ColumnLimit: 100
IndentWidth: 4
2022-12-13 02:25:31 +08:00
---
2024-03-08 18:52:44 +08:00
# settings for C and C++
2022-12-13 02:25:31 +08:00
Language: Cpp
AccessModifierOffset: -4
2023-09-01 17:29:51 +08:00
AlignConsecutiveMacros: AcrossComments
2022-12-13 02:25:31 +08:00
AlwaysBreakTemplateDeclarations: true
AttributeMacros:
2023-02-06 00:20:32 +08:00
- DELETED_FUNCTION
- XSPAN_DELETED_FUNCTION
2023-07-16 13:37:31 +08:00
- may_throw
2022-12-13 02:25:31 +08:00
EmptyLineBeforeAccessModifier: Leave
# IndentPPDirectives: AfterHash # TODO later
2021-01-05 02:07:17 +08:00
SortIncludes: false
SpaceAfterCStyleCast: true
2022-08-27 23:20:10 +08:00
Standard: Cpp03
2022-12-13 02:25:31 +08:00
StatementMacros:
- CLANG_FORMAT_DUMMY_STATEMENT
2021-01-05 02:07:17 +08:00
...