diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-10-10 09:53:46 +0300 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-10-11 10:48:26 +0300 |
commit | bf923061ee01f9fd93bed5550861d4f2ca8b06f1 (patch) | |
tree | 47e31095a6ebc4e834c3858e097048f88c8d985d /recipes-qt/qt5/qt5-creator/0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch | |
parent | 79a0e938922f85638b578a9ae0f21c8856176e68 (diff) | |
parent | 6442c54d10750016083b06a8bc22b9bffc5e26a2 (diff) | |
download | meta-qt5-bf923061ee01f9fd93bed5550861d4f2ca8b06f1.tar.gz |
Merge remote-tracking branch 'qtyocto/upstream/master' into 5.13
* upstream/master:
6442c54 qt3d-runtime: update to ogl-runtime v2.4
7bb213b qtvirtualkeyboard: update supported layouts
eb63611 qt5-creator: Fix clangformat with clang 9.x
12ea469 qttools: Add CONFIG+=config_clang_done when not building with clang
dc502d5 qtwebengine: Fix compile failure with 5.2+ kernel headers
8799d3b qtserialbus: Fix build with 5.2+ kernel headers
e8aa2dd qtwebengine: Add pulseaudio support
4d8f350 qtwebengine: Rename jasoncpp to jsoncpp
725c87d qtwayland: do not reference private modules in cmake Qt5WaylandClient
a41cd9e qtwayland: remove workaround for missing private headers (QTBUG-71340)
Conflicts:
recipes-qt/qt5/qtserialbus_git.bb
Change-Id: I8f5248fb6f320555a231f59cddeb4c18ff810259
Diffstat (limited to 'recipes-qt/qt5/qt5-creator/0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch')
-rw-r--r-- | recipes-qt/qt5/qt5-creator/0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qt5-creator/0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch b/recipes-qt/qt5/qt5-creator/0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch new file mode 100644 index 00000000..1bc3632d --- /dev/null +++ b/recipes-qt/qt5/qt5-creator/0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 453c075b67b9d9254bf7331e1e3be287f240a9e0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 3 Sep 2019 13:31:12 -0700 | ||
4 | Subject: [PATCH] clangformat: AllowShortIfStatementsOnASingleLine is not | ||
5 | boolean anymore | ||
6 | |||
7 | https://reviews.llvm.org/D59087 has implemented multiple states for AllowShortIfStatementsOnASingleLine | ||
8 | |||
9 | Fixes | ||
10 | ../../../../git/src/plugins/clangformat/clangformatutils.cpp:63:49: error: assigning to 'clang::format::FormatStyle::ShortIfStyle' from incompatible type 'bool' | ||
11 | style.AllowShortIfStatementsOnASingleLine = false; | ||
12 | ^~~~~ | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | --- | ||
18 | src/plugins/clangformat/clangformatutils.cpp | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/src/plugins/clangformat/clangformatutils.cpp b/src/plugins/clangformat/clangformatutils.cpp | ||
22 | index 09a3150c89..7d8a95ae18 100644 | ||
23 | --- a/src/plugins/clangformat/clangformatutils.cpp | ||
24 | +++ b/src/plugins/clangformat/clangformatutils.cpp | ||
25 | @@ -60,7 +60,7 @@ static clang::format::FormatStyle qtcStyle() | ||
26 | style.AllowShortBlocksOnASingleLine = false; | ||
27 | style.AllowShortCaseLabelsOnASingleLine = false; | ||
28 | style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline; | ||
29 | - style.AllowShortIfStatementsOnASingleLine = false; | ||
30 | + style.AllowShortIfStatementsOnASingleLine = FormatStyle::SIS_Never; | ||
31 | style.AllowShortLoopsOnASingleLine = false; | ||
32 | style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_None; | ||
33 | style.AlwaysBreakBeforeMultilineStrings = false; | ||
34 | -- | ||
35 | 2.23.0 | ||
36 | |||