Skip to content

Commit 983324c

Browse files
Merge branch 'main' into noexcept_reverse_iterator
2 parents 490d45c + 0620026 commit 983324c

File tree

1,006 files changed

+59482
-24592
lines changed

Some content is hidden

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

1,006 files changed

+59482
-24592
lines changed

.clang-format

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4-
# https://releases.llvm.org/11.0.0/tools/clang/docs/ClangFormatStyleOptions.html
4+
# https://releases.llvm.org/13.0.0/tools/clang/docs/ClangFormatStyleOptions.html
55

66
---
77
# Language: Cpp
@@ -10,12 +10,14 @@ BasedOnStyle: LLVM
1010
AccessModifierOffset: -4
1111
# AlignAfterOpenBracket: Align
1212
AlignAfterOpenBracket: DontAlign
13-
# AlignConsecutiveMacros: false
14-
AlignConsecutiveMacros: true
15-
# AlignConsecutiveAssignments: false
16-
AlignConsecutiveAssignments: true
17-
# AlignConsecutiveBitFields: false
18-
# AlignConsecutiveDeclarations: false
13+
# AlignArrayOfStructures: None
14+
# TRANSITION, LLVM-51935 (try using AlignArrayOfStructures after this crash is fixed)
15+
# AlignConsecutiveMacros: None
16+
AlignConsecutiveMacros: Consecutive
17+
# AlignConsecutiveAssignments: None
18+
AlignConsecutiveAssignments: Consecutive
19+
# AlignConsecutiveBitFields: None
20+
# AlignConsecutiveDeclarations: None
1921
# AlignEscapedNewlines: Right
2022
AlignEscapedNewlines: Left
2123
# AlignOperands: Align
@@ -38,6 +40,8 @@ AllowShortFunctionsOnASingleLine: Empty
3840
# AlwaysBreakBeforeMultilineStrings: false
3941
# AlwaysBreakTemplateDeclarations: MultiLine
4042
AlwaysBreakTemplateDeclarations: Yes
43+
# AttributeMacros:
44+
# - __capability
4145
# BinPackArguments: true
4246
# BinPackParameters: true
4347
# BraceWrapping:
@@ -61,6 +65,7 @@ AlwaysBreakTemplateDeclarations: Yes
6165
# SplitEmptyNamespace: true
6266
# BreakBeforeBinaryOperators: None
6367
BreakBeforeBinaryOperators: NonAssignment
68+
# BreakBeforeConceptDeclarations: true
6469
# BreakBeforeBraces: Attach
6570
# BreakBeforeInheritanceComma: false
6671
# BreakInheritanceList: BeforeColon
@@ -81,24 +86,31 @@ ColumnLimit: 120
8186
DeriveLineEnding: false
8287
# DerivePointerAlignment: false
8388
# DisableFormat: false
89+
# EmptyLineAfterAccessModifier: Never
90+
# EmptyLineBeforeAccessModifier: LogicalBlock
8491
# ExperimentalAutoDetectBinPacking: false
8592
# FixNamespaceComments: true
8693
# ForEachMacros:
8794
# - foreach
8895
# - Q_FOREACH
8996
# - BOOST_FOREACH
97+
# IfMacros:
98+
# - KJ_IF_MAYBE
9099
# IncludeBlocks: Preserve
91100
IncludeBlocks: Regroup
92101
# IncludeCategories:
93102
# - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
94103
# Priority: 2
95104
# SortPriority: 0
105+
# CaseSensitive: false
96106
# - Regex: '^(<|"(gtest|gmock|isl|json)/)'
97107
# Priority: 3
98108
# SortPriority: 0
109+
# CaseSensitive: false
99110
# - Regex: '.*'
100111
# Priority: 1
101112
# SortPriority: 0
113+
# CaseSensitive: false
102114
IncludeCategories:
103115
- Regex: '^<yvals(_core)?\.h>$'
104116
Priority: 1
@@ -116,12 +128,15 @@ IncludeCategories:
116128
Priority: 2
117129
# IncludeIsMainRegex: '(Test)?$'
118130
# IncludeIsMainSourceRegex: ''
131+
# IndentAccessModifiers: false
119132
# IndentCaseLabels: false
120133
# IndentCaseBlocks: false
121134
IndentCaseBlocks: true
122135
# IndentGotoLabels: true
123136
# IndentPPDirectives: None
124137
# IndentExternBlock: AfterExternBlock
138+
# IndentRequires: false
139+
IndentRequires: true
125140
# IndentWidth: 2
126141
IndentWidth: 4
127142
# IndentWrappedFunctionNames: false
@@ -130,6 +145,7 @@ IndentWrappedFunctionNames: true
130145
# JavaScriptQuotes: Leave
131146
# JavaScriptWrapImports: true
132147
# KeepEmptyLinesAtTheStartOfBlocks: true
148+
# LambdaBodyIndentation: Signature
133149
# NOTE: MacroBlockBegin/MacroBlockEnd don't work with _CATCH_ALL.
134150
# MacroBlockBegin: ''
135151
# MacroBlockEnd: ''
@@ -150,32 +166,45 @@ NamespaceIndentation: All
150166
# PenaltyBreakTemplateDeclaration: 10
151167
# PenaltyExcessCharacter: 1000000
152168
# PenaltyReturnTypeOnItsOwnLine: 60
169+
# PenaltyIndentedWhitespace: 0
153170
# PointerAlignment: Right
154171
PointerAlignment: Left
172+
# PPIndentWidth: -1
173+
# ReferenceAlignment: Pointer
155174
# ReflowComments: true
156-
# SortIncludes: true
175+
# ShortNamespaceLines: 1
176+
# SortIncludes: CaseSensitive
177+
# SortJavaStaticImport: Before
157178
# SortUsingDeclarations: true
158179
# SpaceAfterCStyleCast: false
159180
SpaceAfterCStyleCast: true
160181
# SpaceAfterLogicalNot: false
161182
# SpaceAfterTemplateKeyword: true
162183
# SpaceBeforeAssignmentOperators: true
184+
# SpaceBeforeCaseColon: false
163185
# SpaceBeforeCpp11BracedList: false
164186
# SpaceBeforeCtorInitializerColon: true
165187
# SpaceBeforeInheritanceColon: true
166188
# SpaceBeforeParens: ControlStatements
189+
# SpaceAroundPointerQualifiers: Default
167190
# SpaceBeforeRangeBasedForLoopColon: true
168191
# SpaceInEmptyBlock: false
169192
# SpaceInEmptyParentheses: false
170193
# SpacesBeforeTrailingComments: 1
171-
# SpacesInAngles: false
194+
# SpacesInAngles: Never
172195
# SpacesInConditionalStatement: false
173196
# SpacesInContainerLiterals: true
174197
# SpacesInCStyleCastParentheses: false
198+
# SpacesInLineCommentPrefix:
199+
# Minimum: 1
200+
# Maximum: -1
175201
# SpacesInParentheses: false
176202
# SpacesInSquareBrackets: false
177203
# SpaceBeforeSquareBrackets: false
204+
# BitFieldColonSpacing: Both
178205
# Standard: Latest
206+
# StatementAttributeLikeMacros:
207+
# - Q_EMIT
179208
# StatementMacros:
180209
# - Q_UNUSED
181210
# - QT_REQUIRE_VERSION
@@ -198,4 +227,6 @@ UseCRLF: true
198227
# - STRINGIZE
199228
# - PP_STRINGIZE
200229
# - BOOST_PP_STRINGIZE
230+
# - NS_SWIFT_NAME
231+
# - CF_SWIFT_NAME
201232
...

.github/ISSUE_TEMPLATE/cxx23-feature.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ and the publication of the papers. When the papers are available,
2121
the https://wg21.link redirector will start working.
2222

2323
Feature-test macro:
24-
`#define MACRO_NAME MACRO_VALUE`
25-
26-
Note: We're still working on finishing C++20. Until we're done
27-
with that (and the compiler implements distinct `/std:c++20` and
28-
`/std:c++latest` options), we won't be able to review PRs for
29-
C++23 features.
24+
```cpp
25+
#define MACRO_NAME MACRO_VALUE
26+
```

.github/workflows/update-status-chart.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,30 @@ on:
88
workflow_dispatch:
99
jobs:
1010
build:
11+
if: ${{ github.repository == 'microsoft/STL' }}
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Checkout gh-pages
14-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1516
with:
1617
ref: gh-pages
1718
- name: Setup Node.js
18-
uses: actions/setup-node@v2
19+
uses: actions/setup-node@v3
1920
with:
20-
node-version: ">=15.12.0"
21-
- name: Run gather_stats.js
21+
node-version: ">=17.8.0"
22+
- name: Install Packages
2223
run: |
2324
npm ci
24-
SECRET_GITHUB_PERSONAL_ACCESS_TOKEN="${{ github.token }}" node gather_stats.js
25+
- name: Compile And Run gather_stats.ts
26+
run: |
27+
SECRET_GITHUB_PERSONAL_ACCESS_TOKEN="${{ github.token }}" npm run gather
28+
- name: Compile And Bundle status_chart.ts
29+
run: |
30+
npm run make
2531
- name: Commit Changes
2632
run: |
2733
git config user.name "github-actions[bot]"
2834
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
29-
git add daily_table.js monthly_table.js
35+
git add src/daily_table.ts src/monthly_table.ts built/status_chart.mjs
3036
git diff-index --quiet HEAD || git commit -m "Automated update."
3137
git push origin gh-pages

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
__pycache__/
55
.vs/
66
.vscode/
7+
/azure-devops/vmss-config.json
8+
/azure-devops/vmss-protected.json
79
/build/
810
/out/
911
/tools/out/
12+
/CMakeLists.txt.user
13+
/*.log

.gitmodules

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Copyright (c) Microsoft Corporation.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4-
[submodule "vcpkg"]
5-
path = vcpkg
6-
url = https://github.com/microsoft/vcpkg.git
7-
fetchRecurseSubmodules = false
84
[submodule "llvm-project"]
95
path = llvm-project
106
url = https://github.com/llvm/llvm-project.git
7+
[submodule "boost-math"]
8+
path = boost-math
9+
url = https://github.com/boostorg/math.git
10+
[submodule "benchmarks/google-benchmark"]
11+
path = benchmarks/google-benchmark
12+
url = https://github.com/google/benchmark.git

.vscode/settings.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@
22
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33
{
44
"C_Cpp.autoAddFileAssociations": false,
5-
"editor.formatOnSave": true,
5+
"editor.formatOnSave": false,
6+
"[cpp]": {
7+
"editor.formatOnSave": true
8+
},
69
"files.associations": {
710
".clang-format": "yaml",
811
"header-units.json": "jsonc",
912
"**/stl/inc/**": "cpp"
1013
},
1114
"files.eol": "\r\n",
1215
"files.exclude": {
16+
"benchmarks/google-benchmark": true,
1317
"llvm-project": true,
1418
"stl/msbuild": true,
15-
"vcpkg": true
19+
"boost-math": true
1620
},
1721
"files.insertFinalNewline": true,
1822
"files.trimFinalNewlines": true,

0 commit comments

Comments
 (0)