Skip to content

Commit 9884c53

Browse files
author
Georgios Rokos
committed
Merge from 'main' to 'sycl-web' (1 commits)
2 parents 648dbc0 + 3e1c787 commit 9884c53

File tree

1,099 files changed

+25599
-17939
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,099 files changed

+25599
-17939
lines changed

clang-tools-extra/clangd/IncludeCleaner.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ getUnused(const IncludeStructure &Structure,
161161
std::vector<const Inclusion *> Unused;
162162
for (const Inclusion &MFI : Structure.MainFileIncludes) {
163163
// FIXME: Skip includes that are not self-contained.
164-
assert(MFI.HeaderID);
164+
if (!MFI.HeaderID) {
165+
elog("File {0} not found.", MFI.Written);
166+
continue;
167+
}
165168
auto IncludeID = static_cast<IncludeStructure::HeaderID>(*MFI.HeaderID);
166169
if (!ReferencedFiles.contains(IncludeID)) {
167170
Unused.push_back(&MFI);

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ the configuration (without a prefix: ``Auto``).
247247

248248

249249

250-
**AlignConsecutiveAssignments** (``AlignConsecutiveStyle``) :versionbadge:`clang-format 13`
250+
**AlignConsecutiveAssignments** (``AlignConsecutiveStyle``) :versionbadge:`clang-format 3.8`
251251
Style of aligning consecutive assignments.
252252

253253
``Consecutive`` will result in formattings like:
@@ -320,7 +320,7 @@ the configuration (without a prefix: ``Auto``).
320320
/* A comment. */
321321
double e = 4;
322322
323-
**AlignConsecutiveBitFields** (``AlignConsecutiveStyle``) :versionbadge:`clang-format 13`
323+
**AlignConsecutiveBitFields** (``AlignConsecutiveStyle``) :versionbadge:`clang-format 11`
324324
Style of aligning consecutive bit field.
325325

326326
``Consecutive`` will align the bitfield separators of consecutive lines.
@@ -394,7 +394,7 @@ the configuration (without a prefix: ``Auto``).
394394
/* A comment. */
395395
int ee : 3;
396396
397-
**AlignConsecutiveDeclarations** (``AlignConsecutiveStyle``) :versionbadge:`clang-format 13`
397+
**AlignConsecutiveDeclarations** (``AlignConsecutiveStyle``) :versionbadge:`clang-format 3.8`
398398
Style of aligning consecutive declarations.
399399

400400
``Consecutive`` will align the declaration names of consecutive lines.
@@ -468,7 +468,7 @@ the configuration (without a prefix: ``Auto``).
468468
/* A comment. */
469469
bool c = false;
470470
471-
**AlignConsecutiveMacros** (``AlignConsecutiveStyle``) :versionbadge:`clang-format 13`
471+
**AlignConsecutiveMacros** (``AlignConsecutiveStyle``) :versionbadge:`clang-format 9`
472472
Style of aligning consecutive macro definitions.
473473

474474
``Consecutive`` will result in formattings like:
@@ -1082,7 +1082,7 @@ the configuration (without a prefix: ``Auto``).
10821082

10831083

10841084

1085-
**AttributeMacros** (``List of Strings``) :versionbadge:`clang-format 13`
1085+
**AttributeMacros** (``List of Strings``) :versionbadge:`clang-format 12`
10861086
A vector of strings that should be interpreted as attributes/qualifiers
10871087
instead of identifiers. This can be useful for language extensions or
10881088
static analyzer annotations.
@@ -1135,7 +1135,7 @@ the configuration (without a prefix: ``Auto``).
11351135
int aaaaaaaaaaaaaaaaaaaa,
11361136
int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}
11371137

1138-
**BitFieldColonSpacing** (``BitFieldColonSpacingStyle``) :versionbadge:`clang-format 13`
1138+
**BitFieldColonSpacing** (``BitFieldColonSpacingStyle``) :versionbadge:`clang-format 12`
11391139
The BitFieldColonSpacingStyle to use for bitfields.
11401140

11411141
Possible values:
@@ -3197,7 +3197,7 @@ the configuration (without a prefix: ``Auto``).
31973197
**PenaltyExcessCharacter** (``Unsigned``) :versionbadge:`clang-format 3.7`
31983198
The penalty for each character outside of the column limit.
31993199

3200-
**PenaltyIndentedWhitespace** (``Unsigned``) :versionbadge:`clang-format 13`
3200+
**PenaltyIndentedWhitespace** (``Unsigned``) :versionbadge:`clang-format 12`
32013201
Penalty for each character of whitespace indentation
32023202
(counted relative to leading non-whitespace column).
32033203

@@ -3301,8 +3301,9 @@ the configuration (without a prefix: ``Auto``).
33013301
* type
33023302

33033303
Note: it MUST contain 'type'.
3304-
Items to the left of 'type' will be placed to the left of the type and aligned in the order supplied.
3305-
Items to the right of 'type' will be placed to the right of the type and aligned in the order supplied.
3304+
Items to the left of 'type' will be placed to the left of the type and
3305+
aligned in the order supplied. Items to the right of 'type' will be placed
3306+
to the right of the type and aligned in the order supplied.
33063307

33073308

33083309
.. code-block:: yaml
@@ -3461,7 +3462,7 @@ the configuration (without a prefix: ``Auto``).
34613462

34623463

34633464

3464-
**SortJavaStaticImport** (``SortJavaStaticImportOptions``) :versionbadge:`clang-format 13`
3465+
**SortJavaStaticImport** (``SortJavaStaticImportOptions``) :versionbadge:`clang-format 12`
34653466
When sorting Java imports, by default static imports are placed before
34663467
non-static imports. If ``JavaStaticImportAfterImport`` is ``After``,
34673468
static imports are placed after non-static imports.
@@ -3529,7 +3530,7 @@ the configuration (without a prefix: ``Auto``).
35293530
true: false:
35303531
template <int> void foo(); vs. template<int> void foo();
35313532

3532-
**SpaceAroundPointerQualifiers** (``SpaceAroundPointerQualifiersStyle``) :versionbadge:`clang-format 13`
3533+
**SpaceAroundPointerQualifiers** (``SpaceAroundPointerQualifiersStyle``) :versionbadge:`clang-format 12`
35333534
Defines in which cases to put a space before or after pointer qualifiers
35343535

35353536
Possible values:
@@ -3578,7 +3579,7 @@ the configuration (without a prefix: ``Auto``).
35783579
int a = 5; vs. int a= 5;
35793580
a += 42; a+= 42;
35803581

3581-
**SpaceBeforeCaseColon** (``Boolean``) :versionbadge:`clang-format 13`
3582+
**SpaceBeforeCaseColon** (``Boolean``) :versionbadge:`clang-format 12`
35823583
If ``false``, spaces will be removed before case colon.
35833584

35843585
.. code-block:: c++
@@ -3893,7 +3894,7 @@ the configuration (without a prefix: ``Auto``).
38933894

38943895

38953896

3896-
**StatementAttributeLikeMacros** (``List of Strings``) :versionbadge:`clang-format 13`
3897+
**StatementAttributeLikeMacros** (``List of Strings``) :versionbadge:`clang-format 12`
38973898
Macros which are ignored in front of a statement, as if they were an
38983899
attribute. So that they are not parsed as identifier, for example for Qts
38993900
emit.

clang/docs/ClangFormattedStatus.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ tree in terms of conformance to :doc:`ClangFormat` as of: October 02, 2021 15:06
5959
- `1`
6060
- `0`
6161
- :good:`100%`
62+
* - clang/examples/clang-interpreter
63+
- `1`
64+
- `0`
65+
- `1`
66+
- :none:`0%`
6267
* - clang/examples/PrintFunctionNames
6368
- `1`
6469
- `0`

0 commit comments

Comments
 (0)