mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-28 02:37:37 +00:00
4cb3d7d7b4
We now use clang-format-13 which has the option SpacesInAngles. This allows us to switch the default language version to C++20, which should avoid breaking code when formatting due to the adding of whitespace. For example `u8"foo"` no longer is formatted as `u8 "foo"`. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D112728
21 lines
463 B
YAML
21 lines
463 B
YAML
BasedOnStyle: LLVM
|
|
|
|
---
|
|
Language: Cpp
|
|
Standard: c++20
|
|
SpacesInAngles: Leave
|
|
|
|
AlwaysBreakTemplateDeclarations: true
|
|
PointerAlignment: Left
|
|
|
|
# Disable formatting options which may break tests.
|
|
SortIncludes: false
|
|
ReflowComments: false
|
|
|
|
# libc++'s preferred indentions of preprocessor statements.
|
|
IndentPPDirectives: AfterHash
|
|
|
|
# libc++ has some long names so we need more than the 80 column limit imposed by LLVM style, for sensible formatting
|
|
ColumnLimit: 120
|
|
---
|