libabigail/.clang-format
Matthias Maennich dfd2c2d562 clang-format: define C++ standard to improve formatting
This is mostly seen for nested templates like
  std::pair<int, std::vector<int> > vs. std::pair<int, std::vector<int>>
                                ^^^                                   ^^

	* .clang-format: Set C++11 standard for formatting.

Signed-off-by: Matthias Maennich <maennich@google.com>
2020-12-15 11:04:14 +01:00

20 lines
536 B
YAML

# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
---
BasedOnStyle: GNU
Standard: c++11
AlignConsecutiveDeclarations: true
AlwaysBreakAfterReturnType: All
BreakConstructorInitializers: BeforeColon
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
BinPackParameters: false
BreakStringLiterals: false
PointerAlignment: Left
SortUsingDeclarations: false
SpaceBeforeParens: ControlStatements
TabWidth: 8
UseTab: Always
BreakBeforeBinaryOperators: NonAssignment
---