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>
This commit is contained in:
Matthias Maennich 2020-12-14 23:02:12 +00:00 committed by Dodji Seketeli
parent 1b62e39f53
commit dfd2c2d562

View File

@ -1,6 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
---
BasedOnStyle: GNU
Standard: c++11
AlignConsecutiveDeclarations: true
AlwaysBreakAfterReturnType: All
BreakConstructorInitializers: BeforeColon