Skip to content

Commit 57a7ff2

Browse files
authored
clang-format cpprestsdk (#1005)
1 parent 00f4843 commit 57a7ff2

File tree

340 files changed

+50506
-50507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+50506
-50507
lines changed

Diff for: .clang-format

+26-11
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,46 @@
1-
BasedOnStyle: WebKit
2-
Language: Cpp
3-
Standard: Cpp11
1+
# https://releases.llvm.org/7.0.0/tools/clang/docs/ClangFormatStyleOptions.html
42

5-
UseTab: Never
6-
IndentWidth: 4
7-
ColumnLimit: 120
8-
PointerAlignment: Left
3+
---
4+
Language: Cpp
95

10-
BreakBeforeBraces: Allman
6+
BasedOnStyle: WebKit
117

8+
AlignAfterOpenBracket: Align
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
1212
AllowShortBlocksOnASingleLine: false
1313
AllowShortCaseLabelsOnASingleLine: true
1414
AllowShortFunctionsOnASingleLine: All
1515
AllowShortIfStatementsOnASingleLine: true
1616
AllowShortLoopsOnASingleLine: false
1717
AlwaysBreakTemplateDeclarations: true
18-
AlignAfterOpenBracket: true
19-
AlignOperands: true
20-
AlignTrailingComments: true
2118
BinPackArguments: false
2219
BinPackParameters: false
2320
BreakBeforeBinaryOperators: None
21+
BreakBeforeBraces: Allman
2422
BreakConstructorInitializersBeforeComma: true
23+
ColumnLimit: 120
2524
ConstructorInitializerAllOnOneLineOrOnePerLine: true
2625
Cpp11BracedListStyle: true
26+
FixNamespaceComments: true
27+
IncludeBlocks: Regroup
28+
IncludeCategories:
29+
- Regex: '^["<](stdafx|pch)\.h[">]$'
30+
Priority: -1
31+
- Regex: '^<Windows\.h>$'
32+
Priority: 3
33+
- Regex: '^<(WinIoCtl|winhttp|Shellapi)\.h>$'
34+
Priority: 4
35+
- Regex: '.*'
36+
Priority: 2
2737
IndentCaseLabels: true
38+
IndentWidth: 4
2839
KeepEmptyLinesAtTheStartOfBlocks: false
40+
MaxEmptyLinesToKeep: 2
2941
NamespaceIndentation: None
3042
PenaltyReturnTypeOnItsOwnLine: 1000
43+
PointerAlignment: Left
3144
SpaceAfterTemplateKeyword: false
45+
Standard: Cpp11
46+
UseTab: Never

Diff for: Build_android/configure.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash
22
# Copyright (C) Microsoft. All rights reserved.
33
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4-
# =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
4+
# =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
55
#
66
# configure.sh
77
#
88
# Build script for casablanca on android
99
#
1010
# For the latest on this and related APIs, please see: https://github.com/Microsoft/cpprestsdk
1111
#
12-
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
12+
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
1313

1414
set -e
1515

0 commit comments

Comments
 (0)