diff mbox series

clang-format: define C++ standard to improve formatting

Message ID 20201214230211.1546803-1-maennich@google.com
State Committed
Headers show
Series clang-format: define C++ standard to improve formatting | expand

Commit Message

Matthias Maennich Dec. 14, 2020, 11:02 p.m. UTC
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

Dodji Seketeli Dec. 15, 2020, 10:06 a.m. UTC | #1
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,
diff mbox series

Patch

diff --git a/.clang-format b/.clang-format
index ef39428fa7f4..8b8640a9a141 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,6 +1,7 @@ 
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 ---
 BasedOnStyle: GNU
+Standard: c++11
 AlignConsecutiveDeclarations: true
 AlwaysBreakAfterReturnType: All
 BreakConstructorInitializers: BeforeColon