clang-format: define C++ standard to improve formatting
Commit Message
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>
---
.clang-format | 1 +
1 file changed, 1 insertion(+)
Comments
Matthias Maennich <maennich@google.com> a écrit:
> 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>
Applied to master, thanks!
Cheer,
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
---
BasedOnStyle: GNU
+Standard: c++11
AlignConsecutiveDeclarations: true
AlwaysBreakAfterReturnType: All
BreakConstructorInitializers: BeforeColon